27 #define _assert(e) assert(e)
31 # define assert(e) ((void)0)
32 # define assert_msg(e, m) ((void)0)
45 # define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, NULL, __FUNCTION__))
56 # define assert_msg(e, m) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, m, __FUNCTION__))
61 void __assert(
const char *file,
int line,
const char *expr,
62 const char *msg,
const char *func);
80 const char * msg,
const char * func);
void(* assert_handler_t)(const char *file, int line, const char *expr, const char *msg, const char *func)
Assertion handler type.
Definition: assert.h:79
Potentially useful definitions for C Programs.
assert_handler_t assert_set_handler(assert_handler_t hnd)
Set an assertion handler to call on a failed assertion.