libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
assert.h File Reference
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 CM3_LIKELY(expr)   (__builtin_expect(!!(expr), 1))
 
#define cm3_assert(expr)
 Check if assertion is true. More...
 
#define cm3_assert_not_reached()   cm3_assert_failed()
 Check if unreachable code is reached. More...
 

Functions

void cm3_assert_failed (void)
 Called on a failed assertion. More...
 
void cm3_assert_failed_verbose (const char *file, int line, const char *func, const char *assert_expr)
 Called on a failed assertion with verbose messages enabled. More...