Group of functions to assist in debugging.
These thread safe functions will print messages to the debug console of the attached debugger and if a debugger is not available, the output will be logged into a text file on applicable platforms.
- See also
- Globals
A fatal error has occurred, print message, then exit.
If the input message pointer is not NULL, then print the message string using printf() rules.
This message, if any, will be output through Debug::Message() which either outputs it to a log file or a debugger's console (If a debugger is present and running).
- Note
- This will call Globals::Shutdown() with a default error code of 1. You must call Globals::SetErrorCode() to change the code to something else.
Secondly, this function won't return unless it was called while Globals::Shutdown() was already invoked, then this function CAN return, so you must add a return statement after calling this function in the case that there is a recursion error in progress.
return;
}
uint_t Fatal(const char *pMessage,...) noexcept
A fatal error has occurred, print message, then exit.
Definition brdebug.cpp:78
Select a type based if the conditional is true or false.
Definition burger.h:3178
- Parameters
-
pMessage | Pointer to a string suitable for printf or NULL. |
- Returns
- 0 if this function returns. In most cases, this function never returns.
- See also
- Debug::Warning, Globals::GetExitFlag() and Globals::Shutdown()
Print a string to a file or debugger.
Given a "C" string, stream the data to a text file, or if a debugger is attached, to the debugger console.
No parsing is done on the string, it's written as is.
- Parameters
-
pString | Pointer to a "C" string to print. |