|
BurgerLib
|
#include "brtypes.h"

Classes | |
| class | BRDebug |
| struct | BRDebug::BRDebugLocals_t |
Defines | |
| #define | BRASSERT(conditional) ((conditional) ? ((void)NULL) : BRDebug::Fatal("Assertion at %s, %i", __FILE__, __LINE__)) |
| Throw a fatal assert on debug builds. | |
| #define | BRASSERTTEST(conditional) ((conditional) ? TRUE : BRDebug::Fatal("Assertion at %s, %i", __FILE__, __LINE__)) |
| Throw a fatal assert on debug builds. | |
| #define BRASSERT | ( | conditional | ) | ((conditional) ? ((void)NULL) : BRDebug::Fatal("Assertion at %s, %i", __FILE__, __LINE__)) |
Throw a fatal assert on debug builds.
Test if the conditional is false, if it is, call BRDebug::Fatal and force the application to immediately exit.
int iResult = GetErrorFlag(); // Zero means no error BRASSERT(!iResult); // Die if an error occured on debug builds
| conditional | Anything that resolves to TRUE or FALSE. |
| #define BRASSERTTEST | ( | conditional | ) | ((conditional) ? TRUE : BRDebug::Fatal("Assertion at %s, %i", __FILE__, __LINE__)) |
Throw a fatal assert on debug builds.
Test if the conditional is false, if it is, call BRDebug::Fatal and force the application to immediately exit.
int iResult = GetErrorFlag(); // Zero means no error if (BRASSERTTEST(!iResult)) { // Die if an error occured on debug builds CodeWasGood(); } else { printf("Error %i has occured!\n",iResult); return; }
| conditional | Anything that resolves to TRUE or FALSE. |
1.8.0