![]() |
Gorgon Game Engine
|
Go to the source code of this file.
Classes | |
class | AssertationException |
Only works when TEST is defined. More... | |
Namespaces | |
Gorgon | |
Root namespace for Gorgon Game Engine. | |
Gorgon::Utils | |
Macros | |
#define | ASSERT(expression, message, ...) |
Replaces regular assert to allow messages and backtrace. More... | |
#define | ASSERT_ALL(expression, message, ...) |
Replaces regular assert to allow messages and backtrace. More... | |
#define | ASSERT_DUMP(expression, message, ...) |
Replaces regular assert to allow messages and backtrace. More... | |
Functions | |
void | ASSERT_FALSE (const std::string &message, int skip=1, int depth=4) |
void | NotImplemented (const std::string &what="This feature") |
#define ASSERT | ( | expression, | |
message, | |||
... | |||
) |
Replaces regular assert to allow messages and backtrace.
Has four additional parameters: skip, which controls how many entries should be skipped from the start in backtrace and depth to control how many entries should be shown in backtrace. Third parameter is to show expanded expression. Fourth decides if the original expression should be displayed skip defaults to 1, depth defaults to 4, expanded defaults to false, original defaults to false
#define ASSERT_ALL | ( | expression, | |
message, | |||
... | |||
) |
Replaces regular assert to allow messages and backtrace.
Has four additional parameters: skip, which controls how many entries should be skipped from the start in backtrace and depth to control how many entries should be shown in backtrace. Third parameter is to show expanded expression. Fourth decides if the original expression should be displayed skip defaults to 1, depth defaults to 4, expanded defaults to true, original defaults to true
#define ASSERT_DUMP | ( | expression, | |
message, | |||
... | |||
) |
Replaces regular assert to allow messages and backtrace.
This variant does not crash or exit the program. It simply dumps the message and stacktrace if assertation fails. Has four additional parameters: skip, which controls how many entries should be skipped from the start in backtrace and depth to control how many entries should be shown in backtrace. Third parameter is to show expanded expression. Fourth decides if the original expression should be displayed skip defaults to 1, depth defaults to 4, expanded defaults to false, original defaults to false