![]() |
DDraceNetwork Documentation
|
Macros | |
| #define | dbg_assert(test, fmt, ...) |
| #define | dbg_assert_failed(fmt, ...) |
Typedefs | |
| typedef std::function< void(const char *message)> | DBG_ASSERT_HANDLER |
Functions | |
| void | dbg_assert_imp (const char *filename, int line, const char *fmt,...) |
| bool | dbg_assert_has_failed () |
| void | dbg_break () |
| void | dbg_assert_set_handler (DBG_ASSERT_HANDLER handler) |
| void | dbg_msg (const char *sys, const char *fmt,...) |
Utilities for debugging.
| #define dbg_assert | ( | test, | |
| fmt, | |||
| ... ) |
Breaks into the debugger based on a test.
| test | Result of the test. |
| fmt | A printf styled format message that should be printed if the test fails. |
| #define dbg_assert_failed | ( | fmt, | |
| ... ) |
Breaks into the debugger with a message.
| fmt | A printf styled format message that should be printed in case the code is reached. |
| typedef std::function<void(const char *message)> DBG_ASSERT_HANDLER |
Callback function type for dbg_assert_set_handler.
| message | The message that a dbg_assert is failing with. |
| bool dbg_assert_has_failed | ( | ) |
Checks whether the program is currently shutting down due to a failed assert.
| void dbg_assert_imp | ( | const char * | filename, |
| int | line, | ||
| const char * | fmt, | ||
| ... ) |
Use the dbg_assert function instead!
| void dbg_assert_set_handler | ( | DBG_ASSERT_HANDLER | handler | ) |
Sets a callback function that will be invoked before breaking into the debugger in dbg_assert.
| void dbg_break | ( | ) |
| void dbg_msg | ( | const char * | sys, |
| const char * | fmt, | ||
| ... ) |
Prints a debug message.
| sys | A string that describes what system the message belongs to. |
| fmt | A printf styled format string. |