don't evaluate assert expression unless the condition is false (patch 1450705)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-21 14:17:49 +00:00
parent 637b7e4f3a
commit 497a2d6d54
2 changed files with 20 additions and 38 deletions

View File

@@ -587,16 +587,6 @@ void wxTrap()
#endif // Win/Unix
}
void wxAssert(int cond,
const wxChar *szFile,
int nLine,
const wxChar *szCond,
const wxChar *szMsg)
{
if ( !cond )
wxOnAssert(szFile, nLine, szCond, szMsg);
}
// this function is called when an assert fails
void wxOnAssert(const wxChar *szFile,
int nLine,