From ac153e89cc0c2c8367932c931544e69269138028 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 7 Oct 2002 22:34:03 +0000 Subject: [PATCH] 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 --- wxPython/src/helpers.cpp | 3 ++- wxPython/src/helpers.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 3a21537fb3..ea47bcdf92 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -156,6 +156,7 @@ int wxPyApp::OnExit() { } +#ifdef __WXDEBUG__ void wxPyApp::OnAssert(const wxChar *file, int line, const wxChar *cond, @@ -218,7 +219,7 @@ void wxPyApp::OnAssert(const wxChar *file, wxApp::OnAssert(file, line, cond, msg); } } - +#endif //--------------------------------------------------------------------- //---------------------------------------------------------------------- diff --git a/wxPython/src/helpers.h b/wxPython/src/helpers.h index 49a6545026..e7524f103a 100644 --- a/wxPython/src/helpers.h +++ b/wxPython/src/helpers.h @@ -424,10 +424,13 @@ public: virtual bool OnInitGui(); virtual int OnExit(); +#ifdef __WXDEBUG__ virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg); +#endif + // virtual int FilterEvent(wxEvent& event); // This one too???? PYPRIVATE;