43 #define USE_ASSERTIONS
60 static void NAssert(
const char*
const _Expression,
const char*
const _Message,
const char*
const _File,
unsigned _Line);
65 static std::function<void(
const char*
const _Expression,
const char*
const _Message,
const char*
const _File,
unsigned _Line)>
s_assert_callback;
73 #define lib_assert(expression, message) ( \
74 (!!(expression)) || (LibAssert::NAssert(#expression, message, __FILE__, (unsigned)(__LINE__)), 0) )
79 #define lib_assert(expression, message) ((void)0)
The default way to make Assert statements within the NDEVR API.
static void NAssert(const char *const _Expression, const char *const _Message, const char *const _File, unsigned _Line)
Handles a failed assertion by reporting the expression, message, file, and line.
static std::function< void(const char *const _Expression, const char *const _Message, const char *const _File, unsigned _Line)> s_assert_callback
Optional callback invoked when an assertion fails.
The primary namespace for the NDEVR SDK.