X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55fd62c1e370bef69657f220ddd591743e842be8..11e3c6ef36393fb5863ea2f9601d8facd73acb12:/include/wx/debug.h?ds=sidebyside diff --git a/include/wx/debug.h b/include/wx/debug.h index b6a61e293e..35c7ca1222 100644 --- a/include/wx/debug.h +++ b/include/wx/debug.h @@ -257,7 +257,7 @@ extern WXDLLIMPEXP_BASE void wxOnAssert(const char *file, // If possible, we prefer to define it as a macro rather than as a function // to open the debugger at the position where we trapped and not inside the // trap function itself which is not very useful. - #ifdef __VISUALC__ + #if wxCHECK_VISUALC_VERSION(7) #define wxTrap() __debugbreak() #else extern WXDLLIMPEXP_BASE void wxTrap(); @@ -297,7 +297,7 @@ extern WXDLLIMPEXP_BASE void wxOnAssert(const char *file, wxSTATEMENT_MACRO_BEGIN \ if ( wxTheAssertHandler && \ (wxOnAssert(__FILE__, __LINE__, __WXFUNCTION__, \ - #cond, msg), wxTrapInAssert) ) \ + cond, msg), wxTrapInAssert) ) \ { \ wxTrapInAssert = false; \ wxTrap(); \