diff --git a/include/wx/debug.h b/include/wx/debug.h index 54573e37a2..50d938e1a9 100644 --- a/include/wx/debug.h +++ b/include/wx/debug.h @@ -171,11 +171,11 @@ if ( cond ) \ ; \ else \ - do \ - { \ - wxFAIL_COND_MSG(#cond, msg); \ - op; \ - } while ( 0 ) + { \ + wxFAIL_COND_MSG(#cond, msg); \ + op; \ + } \ + struct wxDummyCheckStruct /* just to force a semicolon */ /* special form of wxCHECK2: as wxCHECK, but for use in void functions */ /* */