TrinityCore
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 assert(e)
 
#define not_reached()
 
#define not_implemented()
 
#define assert_not_implemented(e)
 
#define cassert(c)
 

Macro Definition Documentation

◆ assert

#define assert (   e)
Value:
do { \
if (unlikely(config_debug && !(e))) { \
malloc_printf( \
"<jemalloc>: %s:%d: Failed assertion: \"%s\"\n", \
__FILE__, __LINE__, #e); \
abort(); \
} \
} while (0)
static const bool config_debug
Definition: jemalloc_preamble.h:50
#define unlikely(x)
Definition: util.h:36

◆ assert_not_implemented

#define assert_not_implemented (   e)
Value:
do { \
if (unlikely(config_debug && !(e))) { \
not_implemented(); \
} \
} while (0)
static const bool config_debug
Definition: jemalloc_preamble.h:50
#define unlikely(x)
Definition: util.h:36

◆ cassert

#define cassert (   c)
Value:
do { \
if (unlikely(!(c))) { \
not_reached(); \
} \
} while (0)
#define unlikely(x)
Definition: util.h:36

◆ not_implemented

#define not_implemented ( )
Value:
do { \
if (config_debug) { \
malloc_printf("<jemalloc>: %s:%d: Not implemented\n", \
__FILE__, __LINE__); \
abort(); \
} \
} while (0)
static const bool config_debug
Definition: jemalloc_preamble.h:50

◆ not_reached

#define not_reached ( )
Value:
do { \
if (config_debug) { \
malloc_printf( \
"<jemalloc>: %s:%d: Unreachable code reached\n", \
__FILE__, __LINE__); \
abort(); \
} \
unreachable(); \
} while (0)
static const bool config_debug
Definition: jemalloc_preamble.h:50