42#define _assert(e) assert(e)
46# define assert(e) ((void)0)
47# define assert_msg(e, m) ((void)0)
53#if defined(__cplusplus)
54# define __ASSERT_FUNC __PRETTY_FUNCTION__
55#elif __STDC_VERSION__ >= 199901L
56# define __ASSERT_FUNC __func__
58# define __ASSERT_FUNC __FUNCTION__
60# define __ASSERT_FUNC ((char *)0)
75# define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, NULL, __ASSERT_FUNC))
86# define assert_msg(e, m) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, m, __ASSERT_FUNC))
91void __assert(
const char *file,
int line,
const char *expr,
92 const char *msg,
const char *func);
110 const char * msg,
const char * func);
Definitions for builtin attributes and compiler directives.
void(* assert_handler_t)(const char *file, int line, const char *expr, const char *msg, const char *func)
Assertion handler type.
Definition assert.h:109
assert_handler_t assert_set_handler(assert_handler_t hnd)
Set an assertion handler to call on a failed assertion.