1 /***
2 *assert.h - define the assert macro
3 *
4 ****/
5 
6 #undef assert
7 
8 #ifdef NDEBUG
9 
10 #define assert(exp) ((void) 0)
11 
12 #else
13 
14 #define assert(exp) \
15     (void)((exp) || (panic("%s at %s line %ld", #exp, __FILE__, __LINE__), 1))
16 
17 #endif /* NDEBUG */
18