diff --git a/include/wx/gtk/app.h b/include/wx/gtk/app.h index ed87ea537b..adddee2b47 100644 --- a/include/wx/gtk/app.h +++ b/include/wx/gtk/app.h @@ -47,7 +47,11 @@ public: static bool InitialzeVisual(); #ifdef __WXDEBUG__ - virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg); + virtual void OnAssertFailure(const wxChar *file, + int line, + const wxChar *func, + const wxChar *cond, + const wxChar *msg); bool IsInAssert() const { return m_isInAssert; } #endif // __WXDEBUG__ diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 52d8556a65..160deeaba1 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -619,11 +619,15 @@ void wxApp::CleanUp() #ifdef __WXDEBUG__ -void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg) +void wxApp::OnAssertFailure(const wxChar *file, + int line, + const wxChar* func, + const wxChar* cond, + const wxChar *msg) { m_isInAssert = true; - wxAppBase::OnAssert(file, line, cond, msg); + wxAppBase::OnAssertFailure(file, line, func, cond, msg); m_isInAssert = false; }