Loading...
Searching...
No Matches
Go to the documentation of this file.
9 fprintf(stderr, __VA_ARGS__); \
15 #define ASSERT(expr, ...) \
17 PANIC("assertion " #expr " failed: " __VA_ARGS__ "\n"); \
21#if !defined UNREACHABLE
22 #define UNREACHABLE(...) PANIC("unreachable: " __VA_ARGS__ "\n");
25#if !defined DEBUG_UNREACHABLE
27 #define DEBUG_UNREACHABLE(...) UNREACHABLE(__VA_ARGS__)
29 #define DEBUG_UNREACHABLE(...) __builtin_unreachable()
34 #define DEBUG_ASSERT(expr) ASSERT(expr)
36 #define DEBUG_ASSERT(expr)