-
Notifications
You must be signed in to change notification settings - Fork 0
dll_assert
Taras Maliukh edited this page Apr 11, 2020
·
1 revision
#ifdef NDEBUG
# define dll_assert(expr) (__ASSERT_VOID_CAST (0))
#else
# define dll_assert(expr) ((expr) \
? __ASSERT_VOID_CAST (0) \
: __dll_assert_fail(#expr, __FILE__, __LINE__, __ASSERT_FUNCTION))
#endif
Abort the program if expr
is false. Printing occurred error like a glibc-assert and libdll errno message.