]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
making method properly const
[wxWidgets.git] / include / wx / debug.h
index 59b2d61d37c8388849296cb6c6665c103b655605..29d4deac3b6cfb3f53a451f41953f9c451e2cca4 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
@@ -276,8 +276,8 @@ extern void WXDLLIMPEXP_BASE wxOnAssert(const char *file,
     #define wxASSERT_LEVEL_2_MSG(cond, msg) wxASSERT_MSG(cond, msg)
     #define wxASSERT_LEVEL_2(cond) wxASSERT(cond)
 #else // wxDEBUG_LEVEL < 2
-    #define wxASSERT_LEVEL_2_MSG
-    #define wxASSERT_LEVEL_2
+    #define wxASSERT_LEVEL_2_MSG(cond, msg)
+    #define wxASSERT_LEVEL_2(cond)
 #endif