vwVERIFY macro non-executing issue fixed

This commit is contained in:
Simon Rozman 2016-05-06 12:09:10 +02:00
parent 5a372f955b
commit 63e206a7ab

View File

@ -55,9 +55,20 @@
/// Debug macros /// Debug macros
/// ///
#if wxDEBUG_LEVEL #if wxDEBUG_LEVEL
#define wxVERIFY(x) wxASSERT((x)) #define wxVERIFY_MSG(cond, msg) \
wxSTATEMENT_MACRO_BEGIN \
if ( !(cond) && wxTheAssertHandler && \
(wxOnAssert(__FILE__, __LINE__, __WXFUNCTION__, \
#cond, msg), wxTrapInAssert) ) \
{ \
wxTrapInAssert = false; \
wxTrap(); \
} \
wxSTATEMENT_MACRO_END
#define wxVERIFY(cond) wxVERIFY_MSG(cond, (const char*)NULL)
#else #else
#define wxVERIFY(x) (x) #define wxVERIFY(cond) (cond)
#endif #endif