BAN: ASSERT now prints the condition

This commit is contained in:
Bananymous 2023-01-13 00:56:16 +02:00
parent 53d1d12c12
commit c35181a92f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#if defined(__is_kernel)
#include <kernel/Panic.h>
#define MUST(error) ({ auto e = error; if (e.IsError()) Kernel::Panic("{}", e.GetError()); e.Value(); })
#define ASSERT(cond) do { if (!(cond)) Kernel::Panic("ASSERT() failed"); } while(false)
#define ASSERT(cond) do { if (!(cond)) Kernel::Panic("ASSERT("#cond") failed"); } while(false)
#else
#error "NOT IMPLEMENTED"
#endif