L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
assert.h File Reference

Low-level assert implementation. More...

#include <l4/sys/compiler.h>
#include <l4/sys/thread.h>
#include <l4/sys/vcon.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 l4_assert(expr)
 Low-level assert.
 

Detailed Description

Low-level assert implementation.

Definition in file assert.h.

Macro Definition Documentation

◆ l4_assert

#define l4_assert (   expr)
Value:
l4_assert_fn(!!(expr), __FILE__ ":" L4_stringify(__LINE__) ": Assertion \"" \
L4_stringify(expr) "\" failed.\n")
#define L4_stringify(x)
stringify.
Definition compiler.h:313

Low-level assert.

Parameters
exprExpression to be evaluate for the assertion.

This assertion is a low-level implementation that directly uses kernel primitives. Only use l4_assert() when the standard assert() functionality is not available.

Definition at line 43 of file assert.h.