Rev 859 | Rev 886 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 859 | Rev 862 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | # define ASSERT(expr) \ |
16 | # define ASSERT(expr) \ |
17 | if (!(expr)) { \ |
17 | if (!(expr)) { \ |
18 | panic("assertion failed (%s), caller=%p\n", #expr, CALLER); \ |
18 | panic("assertion failed (%s), caller=%p\n", #expr, CALLER); \ |
19 | } |
19 | } |
- | 20 | ||
- | 21 | #define DBG(format,...) printf(format,##__VA_ARGS__) |
|
- | 22 | ||
20 | #else |
23 | #else |
- | 24 | ||
21 | # define panic(format, ...) \ |
25 | # define panic(format, ...) \ |
22 | panic_printf("Kernel panic: " format, ##__VA_ARGS__); |
26 | panic_printf("Kernel panic: " format, ##__VA_ARGS__); |
Line 23... | Line 27... | ||
23 | 27 | ||
- | 28 | # define ASSERT(expr) |
|
- | 29 | ||
- | 30 | # define DBG(format,...) |
|
24 | # define ASSERT(expr) |
31 | |
Line 25... | Line 32... | ||
25 | #endif |
32 | #endif |
26 | 33 |