BAN: Add ASSERT_NOT_REACHED()
This commit is contained in:
parent
34f9912a1d
commit
9439582154
|
@ -3,6 +3,7 @@
|
|||
#if defined(__is_kernel)
|
||||
#include <kernel/Panic.h>
|
||||
#define ASSERT(cond) do { if (!(cond)) Kernel::panic("ASSERT("#cond") failed"); } while(false)
|
||||
#define ASSERT_NOT_REACHED() Kernel::panic("ASSERT_NOT_REACHED() failed")
|
||||
#else
|
||||
#error "NOT IMPLEMENTED"
|
||||
#endif
|
Loading…
Reference in New Issue