]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
better check of parameter in Delete() (2nd part of patch 646145)
[wxWidgets.git] / include / wx / debug.h
index 9c92739aaa5b61f06df5ed86ab35837882349b80..4f4230f6c5335a48460166181e3e94c1c59f625d 100644 (file)
 // Use of wxFalse instead of FALSE suppresses compiler warnings about testing
 // constant expression
 WXDLLEXPORT_DATA(extern const bool) wxFalse;
+#define wxAssertFailure wxFalse
 
 // special form of assert: always triggers it (in debug mode)
-#define wxFAIL                 wxASSERT(wxFalse)
+#define wxFAIL                 wxASSERT(wxAssertFailure)
 
 // FAIL with some message
-#define wxFAIL_MSG(msg)        wxASSERT_MSG(wxFalse, msg)
+#define wxFAIL_MSG(msg)        wxASSERT_MSG(wxAssertFailure, msg)
 
 // NB: the following macros work also in release mode!