BAN/Kernel: Rework assertion/panic system

BAN/Assert.h does not need any includes meaning it can be included
anywhere without problems.
This commit is contained in:
2024-03-04 11:41:54 +02:00
parent 8141b9977d
commit 9c36d7c338
20 changed files with 96 additions and 75 deletions

View File

@@ -1,8 +1,10 @@
#pragma once
#if __is_kernel
#error "This is userspace only file"
#endif
#include <kernel/Debug.h>
#else
#include <BAN/Formatter.h>
#include <stdio.h>
@@ -29,3 +31,5 @@
dprintln(__VA_ARGS__); \
BAN::Formatter::print(__debug_putchar, "\e[m"); \
} while(false)
#endif