33 void ShowErrorMessage(
bool safe =
true);
42 #define cbThrow(message) throw cbException(message, cbC2U(__FILE__), __LINE__) 44 #define cbThrow(message) throw cbException(message, __FILE__, __LINE__) 48 #define cbAssert(expr) 57 #define DIE() kill(getpid(), SIGINT) 61 #define cbAssertMessage(expr) \ 63 err.Printf(_T("Assertion failed in %s at %s:%d.\n\n%s"), cbC2U(__PRETTY_FUNCTION__).wx_str(), cbC2U(__FILE__).c_str(), __LINE__, cbC2U(#expr).c_str()); 65 #define cbAssertMessage(expr) \ 67 err.Printf(_T("Assertion failed in %s at %s:%d.\n\n%s"), __PRETTY_FUNCTION__, __FILE__, __LINE__, #expr); 71 #define cbAssertNonFatal(expr) \ 74 cbAssertMessage(expr); \ 75 wxSafeShowMessage(_T("Assertion error"), err); \ 79 #define cbAssert(expr) \ 82 cbAssertMessage(expr); \ 83 wxSafeShowMessage(_T("Fatal assertion error"), err); \ 88 #endif // CBEXCEPTION_H
wxString File
The file where the exception was raised.
int Line
The line in the file where the exception was raised.
wxString Message
The exception's error message.
Code::Blocks error handling unit.