BAN: implement Variant<> for two types

This commit is contained in:
Bananymous
2023-02-22 01:17:21 +02:00
parent afd4b7a184
commit 10b6d51522
2 changed files with 155 additions and 0 deletions

8
BAN/include/BAN/Assert.h Normal file
View 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