42#define _assert(e) assert(e)
49#if __STDC_VERSION__ >= 201112L && __STDC_VERSION__ <= 201710L && !defined __cplusplus
50# define static_assert _Static_assert
55# define assert(e) ((void)0)
56# define assert_msg(e, m) ((void)0)
62#if defined(__cplusplus)
63# define __ASSERT_FUNC __PRETTY_FUNCTION__
64#elif __STDC_VERSION__ >= 199901L
65# define __ASSERT_FUNC __func__
67# define __ASSERT_FUNC __FUNCTION__
69# define __ASSERT_FUNC ((char *)0)
84# define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, NULL, __ASSERT_FUNC))
95# define assert_msg(e, m) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, m, __ASSERT_FUNC))
100void __assert(
const char *file,
int line,
const char *expr,
101 const char *msg,
const char *
func);
119 const char * msg,
const char *
func);
void hnd(const char *file, int line, const char *expr, const char *msg, const char *func)
Definition asserthnd.c:53
Various common macros used throughout the codebase.
void(* assert_handler_t)(const char *file, int line, const char *expr, const char *msg, const char *func)
Assertion handler type.
Definition assert.h:118
assert_handler_t assert_set_handler(assert_handler_t hnd)
Set an assertion handler to call on a failed assertion.
__noinline void func(void)
Definition stacktrace.c:13