]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
adjust the toolbar tools bitmap size to fit the biggest bitmap used under wxOSX too...
[wxWidgets.git] / include / wx / debug.h
index 41ec9bbba2e99689a1a97f1e57da221ab46a0589..593af341d7503b5b5b343633ed2312c273dec35b 100644 (file)
@@ -105,7 +105,7 @@ extern WXDLLIMPEXP_DATA_BASE(wxAssertHandler_t) wxTheAssertHandler;
 
     While usually it is enough -- and more convenient -- to just override
     OnAssertFailure(), to handle all assertion failures, including those
-    occurring even before wxApp object creation of after its destruction you
+    occurring even before wxApp object creation or after its destruction you
     need to provide your assertion handler function.
 
     This function also provides a simple way to disable all asserts: simply
@@ -128,7 +128,7 @@ inline wxAssertHandler_t wxSetAssertHandler(wxAssertHandler_t handler)
 
 #else // !wxDEBUG_LEVEL
 
-// provide empty subs in case assertions are completely disabled
+// provide empty stubs in case assertions are completely disabled
 //
 // NB: can't use WXUNUSED() here as we're included from wx/defs.h before it is
 //     defined
@@ -259,7 +259,10 @@ extern void WXDLLIMPEXP_BASE wxOnAssert(const char *file,
     // wxFAIL is a special form of assert: it always triggers (and so is
     // usually used in normally unreachable code)
     #define wxFAIL_COND_MSG(cond, msg) \
-        wxOnAssert(__FILE__, __LINE__,  __WXFUNCTION__, cond, msg)
+        if ( !wxTheAssertHandler )                                            \
+        {}                                                                    \
+        else                                                                  \
+            wxOnAssert(__FILE__, __LINE__,  __WXFUNCTION__, cond, msg)
     #define wxFAIL_MSG(msg) wxFAIL_COND_MSG("Assert failure", msg)
     #define wxFAIL wxFAIL_MSG((const char*)NULL)
 #else // !wxDEBUG_LEVEL