git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12274
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// this variable can be set to true to suppress "assert failure" messages
static bool s_bNoAsserts = FALSE;
{
// this variable can be set to true to suppress "assert failure" messages
static bool s_bNoAsserts = FALSE;
- static bool s_bInAssert = FALSE; // FIXME MT-unsafe
-
- if ( s_bInAssert )
- {
- // He-e-e-e-elp!! we're trapped in endless loop
- wxTrap();
-
- s_bInAssert = FALSE;
-
- return;
- }
-
- s_bInAssert = TRUE;
wxTrap();
#endif // GUI/!GUI
}
wxTrap();
#endif // GUI/!GUI
}
}
// this function is called when an assert fails
void wxOnAssert(const wxChar *szFile, int nLine, const wxChar *szMsg)
{
}
// this function is called when an assert fails
void wxOnAssert(const wxChar *szFile, int nLine, const wxChar *szMsg)
{
+ // FIXME MT-unsafe
+ static bool s_bInAssert = FALSE;
+
+ if ( s_bInAssert )
+ {
+ // He-e-e-e-elp!! we're trapped in endless loop
+ wxTrap();
+
+ s_bInAssert = FALSE;
+
+ return;
+ }
+
+ s_bInAssert = TRUE;
+
if ( !wxTheApp )
{
// by default, show the assert dialog box - we can't customize this
if ( !wxTheApp )
{
// by default, show the assert dialog box - we can't customize this
// let the app process it as it wants
wxTheApp->OnAssert(szFile, nLine, szMsg);
}
// let the app process it as it wants
wxTheApp->OnAssert(szFile, nLine, szMsg);
}
}
void wxAppBase::OnAssert(const wxChar *file, int line, const wxChar *msg)
}
void wxAppBase::OnAssert(const wxChar *file, int line, const wxChar *msg)