38 #define USE_ASSERTIONS
48 static void NAssert(
const char*
const _Expression,
const char*
const _Message,
const char*
const _File,
unsigned _Line);
50 static std::function<void(
const char*
const _Expression,
const char*
const _Message,
const char*
const _File,
unsigned _Line)>
s_assert_callback;
58 #define lib_assert(expression, message) ( \
59 (!!(expression)) || (NDEVR::LibAssert::NAssert(#expression, message, __FILE__, (unsigned)(__LINE__)), 0) )
61 #define lib_assert(expression, message) ((void)0)
The default way to make Assert statements within the NDEVR API. A no-op in release but throws an exce...
Definition LibAssert.h:46
static void NAssert(const char *const _Expression, const char *const _Message, const char *const _File, unsigned _Line)
static std::function< void(const char *const _Expression, const char *const _Message, const char *const _File, unsigned _Line)> s_assert_callback
Definition LibAssert.h:50