vwVERIFY macro non-executing issue fixed
This commit is contained in:
parent
5a372f955b
commit
63e206a7ab
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user