![]() |
NDEVR
API Documentation
|
The default way to make Assert statements within the NDEVR API. More...
Static Public Member Functions | |
| 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 Public Attributes | |
| 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 default way to make Assert statements within the NDEVR API.
A no-op in release but throws an exception in debug.
Definition at line 50 of file LibAssert.h.
|
static |
Handles a failed assertion by reporting the expression, message, file, and line.
| [in] | _Expression | The stringified expression that evaluated to false. |
| [in] | _Message | A human-readable message describing the assertion failure. |
| [in] | _File | The source file path where the assertion failed. |
| [in] | _Line | The line number in the source file where the assertion failed. |
|
static |
Optional callback invoked when an assertion fails.
Default is null. Set this to override the default assertion failure behavior with custom handling.
Definition at line 65 of file LibAssert.h.