![]() |
Xyris
0.5
|
Go to the source code of this file.
Macros | |
#define | assert(x) (!(x) ? (PANIC("Assert failed at ")) : (void)0) |
Definition in file assert.hpp.
#define assert | ( | x | ) | (!(x) ? (PANIC("Assert failed at ")) : (void)0) |
Creates an assertion which must be held to be true. If the assertion passes, nothing happens and the kernel continue to execute. However, in the even that the assert fails and the value received is not the expected value, the kernel will Panic with the message "Assert failed at" followed by the file, line number, and function.
Definition at line 22 of file assert.hpp.