From 6f054ac5e8f4d9daf9f4d7fabfa285cb7b148d17 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Sep 2003 23:30:25 +0000 Subject: [PATCH] documented how to handle C++ exceptions in wxWindows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/appbase.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 51f2c8f1b6..706c1c97c8 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -277,6 +277,19 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event)) return -1; } +#if wxUSE_EXCEPTIONS + +void +wxAppConsole::HandleEvent(wxEvtHandler *handler, + wxEventFunction func, + wxEvent& event) const +{ + // by default, simply call the handler + (handler->*func)(event); +} + +#endif // wxUSE_EXCEPTIONS + // ---------------------------------------------------------------------------- // cmd line parsing // ---------------------------------------------------------------------------- -- 2.45.2