RTEMS 6.3
Loading...
Searching...
No Matches
Assert Handler

This group contains the Assert Handler implementation. More...

Files

file  cpukit/include/rtems/score/assert.h
 This header file provides the interfaces of the Assert Handler.

Macros

#define _Assert(_e)
 Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG and static analysis runs.
#define _Assert_Unused_variable_equals(_var, _val)
 Assert if unused return value is equal.
#define _Assert_Unused_variable_unequal(_var, _val)
 Assert if unused return value is not equal.

Detailed Description

This group contains the Assert Handler implementation.

Macro Definition Documentation

◆ _Assert

#define _Assert ( _e)
Value:
( ( void ) 0 )

Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG and static analysis runs.

◆ _Assert_Unused_variable_equals

#define _Assert_Unused_variable_equals ( _var,
_val )
Value:
do { \
_Assert((_var) == (_val)); \
(void) (_var); \
} while (0)

Assert if unused return value is equal.

Assert whether _var and _val are equal and ensure _var is marked as used when not building for debug.

Parameters
_varThe return value to be checked.
_valIndicates what _var is supposed to be.

◆ _Assert_Unused_variable_unequal

#define _Assert_Unused_variable_unequal ( _var,
_val )
Value:
do { \
_Assert((_var) != (_val)); \
(void) (_var); \
} while (0)

Assert if unused return value is not equal.

Assert whether _var and _val are not equal and ensure _var is marked as used when not building for debug.

Parameters
_varThe return value to be checked.
_valIndicates what _var is not supposed to be.