6 #include "opthelpers.h"
11 void do_assert(const char *message
, int linenum
, const char *filename
, const char *funcname
) noexcept
;
15 /* A custom assert macro that is not compiled out for Release/NDEBUG builds,
16 * making it an appropriate replacement for assert() checks that must not be
19 #define alassert(cond) do { \
20 if(!(cond)) UNLIKELY \
21 al::do_assert("Assertion '" #cond "' failed", __LINE__, __FILE__, std::data(__func__)); \
24 #endif /* AL_ASSERT_H */