moved OnExceptionInMainLoop() in .cpp from header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -121,12 +121,7 @@ public:
|
|||||||
// event loop: it may return true to continue running the event loop or
|
// event loop: it may return true to continue running the event loop or
|
||||||
// false to stop it (in the latter case it may rethrow the exception as
|
// false to stop it (in the latter case it may rethrow the exception as
|
||||||
// well)
|
// well)
|
||||||
virtual bool OnExceptionInMainLoop() {
|
virtual bool OnExceptionInMainLoop();
|
||||||
throw;
|
|
||||||
#if defined(__DMC__) || (defined(_MSC_VER) && _MSC_VER < 1200)
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
// Called when an unhandled C++ exception occurs inside OnRun(): note that
|
// Called when an unhandled C++ exception occurs inside OnRun(): note that
|
||||||
// the exception type is lost by now, so if you really want to handle the
|
// the exception type is lost by now, so if you really want to handle the
|
||||||
|
@@ -284,6 +284,10 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// exception handling
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if wxUSE_EXCEPTIONS
|
#if wxUSE_EXCEPTIONS
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -295,6 +299,17 @@ wxAppConsole::HandleEvent(wxEvtHandler *handler,
|
|||||||
(handler->*func)(event);
|
(handler->*func)(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
wxAppConsole::OnExceptionInMainLoop()
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
|
||||||
|
// some compilers are too stupid to know that we never return after throw
|
||||||
|
#if defined(__DMC__) || (defined(_MSC_VER) && _MSC_VER < 1200)
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#endif // wxUSE_EXCEPTIONS
|
#endif // wxUSE_EXCEPTIONS
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user