Don't do the OnAssert overloading if not __WXDEBUG__

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-10-07 22:34:03 +00:00
parent 86f964c3dd
commit ac153e89cc
2 changed files with 5 additions and 1 deletions

View File

@@ -156,6 +156,7 @@ int wxPyApp::OnExit() {
} }
#ifdef __WXDEBUG__
void wxPyApp::OnAssert(const wxChar *file, void wxPyApp::OnAssert(const wxChar *file,
int line, int line,
const wxChar *cond, const wxChar *cond,
@@ -218,7 +219,7 @@ void wxPyApp::OnAssert(const wxChar *file,
wxApp::OnAssert(file, line, cond, msg); wxApp::OnAssert(file, line, cond, msg);
} }
} }
#endif
//--------------------------------------------------------------------- //---------------------------------------------------------------------
//---------------------------------------------------------------------- //----------------------------------------------------------------------

View File

@@ -424,10 +424,13 @@ public:
virtual bool OnInitGui(); virtual bool OnInitGui();
virtual int OnExit(); virtual int OnExit();
#ifdef __WXDEBUG__
virtual void OnAssert(const wxChar *file, virtual void OnAssert(const wxChar *file,
int line, int line,
const wxChar *cond, const wxChar *cond,
const wxChar *msg); const wxChar *msg);
#endif
// virtual int FilterEvent(wxEvent& event); // This one too???? // virtual int FilterEvent(wxEvent& event); // This one too????
PYPRIVATE; PYPRIVATE;