Go to the source code of this file.
|
| class | Debug |
| | Stream for diagnostic text, written to standard output or to a log file. More...
|
|
| #define | ASSERT(cond) |
| | Report a failure when a condition is false.
|
| #define | ASSERT_RANGE(x, low, high) |
| | Report a failure when a value is outside a half-open range.
|
|
| void | DebugPrint (const char *fmt,...) |
| | Format a diagnostic message that this build discards.
|
◆ ASSERT
Value: do { \
if (!(cond)) { \
TheDebug.Fail(
"File: %s Line: %d Error: %s\n", __FILE__, __LINE__, #cond); \
} \
} while (false)
Debug TheDebug
The diagnostic stream.
Report a failure when a condition is false.
- Parameters
-
◆ ASSERT_RANGE
| #define ASSERT_RANGE |
( |
| x, |
|
|
| low, |
|
|
| high ) |
Value:ASSERT((low) <= (x) && (x) < (high))
#define ASSERT(cond)
Report a failure when a condition is false.
Definition Debug.h:129
Report a failure when a value is outside a half-open range.
- Parameters
-
| x | The value. |
| low | The lowest valid value. |
| high | One past the highest valid value. |
◆ ModalCallbackFunc
| typedef void(* ModalCallbackFunc) (int &type, const char *message) |
Handler that replaces the message box of Debug::Modal().
The handler may change the kind of message. The program exits when the kind is Debug::kModalFail after the handler returns.
- Parameters
-
| type | The kind of message. |
| message | The text. |
◆ DebugPrint()
| void DebugPrint |
( |
const char * | fmt, |
|
|
| ... ) |
Format a diagnostic message that this build discards.
The body is empty. The linker shares it with every other empty routine of the program.
- Parameters
-
- Ghidra address:
- 0x1000fb60
◆ TheDebug
The diagnostic stream.
- Ghidra address:
- 0x1003e918