Assertion macros UASSERT, UASSERT_MSG, UINVARIANT.
Definition in file assert.hpp.
Go to the source code of this file.
#include <string_view>
Namespaces | |
namespace | utils |
Utilities. | |
Macros | |
#define | UASSERT_MSG(expr, msg) |
Assertion macro for that aborts execution in DEBUG builds with a message msg and does nothing in release builds. | |
#define | UASSERT(expr) |
Assertion macro that aborts execution in DEBUG builds and does nothing in release builds. | |
#define | UINVARIANT(condition, message) |
Asserts in debug builds, throws utils::InvariantError in release. | |
#define UASSERT | ( | expr | ) |
Assertion macro that aborts execution in DEBUG builds and does nothing in release builds.
Definition at line 57 of file assert.hpp.
#define UASSERT_MSG | ( | expr, | |
msg ) |
Assertion macro for that aborts execution in DEBUG builds with a message msg
and does nothing in release builds.
Definition at line 42 of file assert.hpp.
#define UINVARIANT | ( | condition, | |
message ) |
Asserts in debug builds, throws utils::InvariantError in release.
Definition at line 63 of file assert.hpp.