keep kernel panics on failed assertion with NDEBUG
This commit is contained in:
parent
a3575b8997
commit
42fe995724
1 changed files with 0 additions and 4 deletions
|
|
@ -22,12 +22,8 @@
|
|||
|
||||
#define panic(message) panic_core(__FILE__, __func__, __LINE__, message);
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define assert(condition) ((void)0)
|
||||
#else
|
||||
#define assert(condition) \
|
||||
{ \
|
||||
if (!(condition)) \
|
||||
panic("assertion failed: " #condition) \
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue