forked from Bananymous/banan-os
BAN: implement Variant<> for two types
This commit is contained in:
8
BAN/include/BAN/Assert.h
Normal file
8
BAN/include/BAN/Assert.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(__is_kernel)
|
||||
#include <kernel/Panic.h>
|
||||
#define ASSERT(cond) do { if (!(cond)) Kernel::panic("ASSERT("#cond") failed"); } while(false)
|
||||
#else
|
||||
#error "NOT IMPLEMENTED"
|
||||
#endif
|
||||
Reference in New Issue
Block a user