LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
assert.h
Go to the documentation of this file.
1
9#ifndef KERNEL_KERNEL_ASSERT_H
10#define KERNEL_KERNEL_ASSERT_H
11
12#include <kernel/panic.h>
13
14#define ASSERT(cond) \
15 do { if (!(cond)) PANIC("Assertion failed: %s", #cond); } while (0)
16
17#endif
Handler for kernel panics.