Skip to content

dll_assert

Taras Maliukh edited this page Apr 11, 2020 · 1 revision

Synopsis:

#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

Description:

Abort the program if expr is false. Printing occurred error like a glibc-assert and libdll errno message.

Clone this wiki locally