Xyris  0.5
assert.hpp File Reference

Go to the source code of this file.

Macros

#define assert(x)   (!(x) ? (PANIC("Assert failed at ")) : (void)0)
 

Detailed Description

Author
Keeton Feavel (keeto.nosp@m.nfea.nosp@m.vel@c.nosp@m.edar.nosp@m.ville.nosp@m..edu)
Version
0.3
Date
2020-07-14

Definition in file assert.hpp.

Macro Definition Documentation

◆ assert

#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.