LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
assert.h File Reference

Runtime assertion. More...

#include <kernel/panic.h>
Include dependency graph for assert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASSERT(cond)

Detailed Description

Runtime assertion.

Author
Matheus Boscariol
Since
02/11/2026

Definition in file assert.h.

Macro Definition Documentation

◆ ASSERT

#define ASSERT ( cond)
Value:
do { if (!(cond)) PANIC("Assertion failed: %s", #cond); } while (0)
#define PANIC(...)
Calls panic and automatically fills in the parameters.
Definition panic.h:17

Definition at line 14 of file assert.h.