fix compilation without WXDEBUG (includes patch 561458)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-05-28 16:54:50 +00:00
parent 8fb97d468b
commit d715d419e1
2 changed files with 6 additions and 0 deletions

View File

@ -74,7 +74,9 @@ public:
// Processes an X event.
virtual bool ProcessXEvent(WXEvent* event);
#ifdef __WXDEBUG__
virtual void OnAssert(const wxChar *file, int line, const wxChar *msg);
#endif // __WXDEBUG__
protected:
bool m_showOnInit;

View File

@ -1219,6 +1219,8 @@ bool wxApp::Yield(bool onlyIfNeeded)
return TRUE;
}
#ifdef __WXDEBUG__
void wxApp::OnAssert(const wxChar *file, int line, const wxChar *msg)
{
// While the GUI isn't working that well, just print out the
@ -1232,3 +1234,5 @@ void wxApp::OnAssert(const wxChar *file, int line, const wxChar *msg)
#endif
}
#endif // __WXDEBUG__