wxWidgets: interface/wx/debug.h File Reference

| Version: 3.2.5

Macros | Typedefs | Functions
debug.h File Reference

## Macros
#define | wxDEBUG_LEVEL
| Preprocessor symbol defining the level of debug support available. More...
#define | __WXDEBUG__
| Compatibility macro indicating presence of debug support. More...
#define | wxASSERT(condition)
| Assert macro. More...
#define | wxASSERT_LEVEL_2(condition)
| Assert macro for expensive run-time checks. More...
#define | wxASSERT_LEVEL_2_MSG(condition, msg)
| Assert macro with a custom message for expensive run-time checks. More...
#define | wxASSERT_MIN_BITSIZE(type, size)
| This macro results in a compile time assertion failure if the size of the given `type` is less than `size` bits. More...
#define | wxASSERT_MSG(condition, message)
| Assert macro with message. More...
#define | wxASSERT_MSG_AT(condition, message, file, line, func)
| Assert macro pretending to assert at the specified location. More...
#define | wxCHECK(condition, retValue)
| Checks that the condition is true, returns with the given return value if not (stops execution in debug mode). More...
#define | wxCHECK_MSG(condition, retValue, message)
| Checks that the condition is true, returns with the given return value if not (stops execution in debug mode). More...
#define | wxCHECK_RET(condition, message)
| Checks that the condition is true, and returns if not (stops execution with the given error message in debug mode). More...
#define | wxCHECK2(condition, operation)
| Checks that the condition is true, and if not, it will wxFAIL() and execute the given `operation` if it is not. More...
#define | wxCHECK2_MSG(condition, operation, message)
| This is the same as wxCHECK2(), but wxFAIL_MSG() with the specified `message` is called instead of wxFAIL() if the `condition` is false. More...
#define | wxCOMPILE_TIME_ASSERT(condition, message)
| Using wxCOMPILE_TIME_ASSERT() results in a compilation error if the specified `condition` is false. More...
#define | wxCOMPILE_TIME_ASSERT2(condition, message, name)
| This macro is identical to wxCOMPILE_TIME_ASSERT() except that it allows you to specify a unique `name` for the struct internally defined by this macro to avoid getting the compilation errors described for wxCOMPILE_TIME_ASSERT(). More...
#define | wxDISABLE_ASSERTS_IN_RELEASE_BUILD() wxDisableAsserts()
| Use this macro to disable asserts in release build when not using wxIMPLEMENT_APP(). More...
#define | wxFAIL
| Will always generate an assert error if this code is reached (in debug mode). More...
#define | wxFAIL_MSG(message)
| Will always generate an assert error with specified message if this code is reached (in debug mode). More...
#define | wxFAIL_MSG_AT(message, file, line, func)
| Assert failure macro pretending to assert at the specified location. More...

## Typedefs
typedef void(* | wxAssertHandler_t) (const wxString &file, int line, const wxString &func, const wxString &cond, const wxString &msg)
| Type for the function called in case of assert failure. More...

## Functions
void | wxAbort ()
| Exits the program immediately. More...
void | wxDisableAsserts ()
| Disable the condition checks in the assertions. More...
bool | wxIsDebuggerRunning ()
| Returns true if the program is running under debugger, false otherwise. More...
wxAssertHandler_t | wxSetAssertHandler (wxAssertHandler_t handler)
| Sets the function to be called in case of assertion failure. More...
void | wxSetDefaultAssertHandler ()
| Reset the assert handler to default function which shows a message box when an assert happens. More...
void | wxTrap ()
| Generate a debugger exception meaning that the control is passed to the debugger if one is attached to the process. More...