From 94395821541c34632334df7a683d953ff8c767e1 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 26 Feb 2023 02:53:58 +0200 Subject: [PATCH] BAN: Add ASSERT_NOT_REACHED() --- BAN/include/BAN/Assert.h | 1 + 1 file changed, 1 insertion(+) diff --git a/BAN/include/BAN/Assert.h b/BAN/include/BAN/Assert.h index 241147022..c313684b4 100644 --- a/BAN/include/BAN/Assert.h +++ b/BAN/include/BAN/Assert.h @@ -3,6 +3,7 @@ #if defined(__is_kernel) #include #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 \ No newline at end of file