Rizin
unix-like reverse engineering framework and cli tools
assert.h File Reference

Go to the source code of this file.

Macros

#define assert(e)
 
#define not_reached()
 
#define not_implemented()
 
#define assert_not_implemented(e)
 

Macro Definition Documentation

◆ assert

#define assert (   e)
Value:
do { \
if (unlikely(config_debug && !(e))) { \
eprintf( \
"<jemalloc>: %s:%d: Failed assertion: \"%s\"\n", \
__FILE__, __LINE__, #e); \
abort(); \
} \
} while (0)
#define e(frag)
static const bool config_debug
#define unlikely(expr)
Definition: lz4.c:177

Definition at line 6 of file assert.h.

◆ assert_not_implemented

#define assert_not_implemented (   e)
Value:
do { \
if (unlikely(config_debug && !(e))) \
not_implemented(); \
} while (0)

Definition at line 39 of file assert.h.

◆ not_implemented

#define not_implemented ( )
Value:
do { \
if (config_debug) { \
eprintf("<jemalloc>: %s:%d: Not implemented\n", \
__FILE__, __LINE__); \
abort(); \
} \
} while (0)

Definition at line 29 of file assert.h.

◆ not_reached

#define not_reached ( )
Value:
do { \
if (config_debug) { \
eprintf( \
"<jemalloc>: %s:%d: Unreachable code reached\n", \
__FILE__, __LINE__); \
abort(); \
} \
unreachable(); \
} while (0)

Definition at line 17 of file assert.h.