10 lines
413 B
C
10 lines
413 B
C
#pragma once
|
|
|
|
void printk(const char *msg);
|
|
_Noreturn void panic(const char *msg);
|
|
|
|
#define check(expr) \
|
|
if (!(expr)) { \
|
|
panic("Assertion failed at " __FILE__ " : " \
|
|
" : " #expr "\n"); \
|
|
} |