]> git.saurik.com Git - wxWidgets.git/commitdiff
moved OnExceptionInMainLoop() in .cpp from header
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 May 2004 11:16:32 +0000 (11:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 May 2004 11:16:32 +0000 (11:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/app.h
src/common/appbase.cpp

index a0c4a71fb16606a2079cea9d8248135d60f53fca..b2e7a337b9e668897faa84ff4a6f515428870426 100644 (file)
@@ -121,12 +121,7 @@ public:
     // 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
     // well)
-    virtual bool OnExceptionInMainLoop() {
-        throw;
-#if defined(__DMC__) || (defined(_MSC_VER) && _MSC_VER < 1200)
-        return false;
-#endif
-        }
+    virtual bool OnExceptionInMainLoop();
 
     // 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
index 2917c634c1060ff2b873d6214c96f9bfdb6eb7d9..d479bef6e1dbd0efef91195c7815efba152c4e92 100644 (file)
@@ -284,6 +284,10 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))
     return -1;
 }
 
+// ----------------------------------------------------------------------------
+// exception handling
+// ----------------------------------------------------------------------------
+
 #if wxUSE_EXCEPTIONS
 
 void
@@ -295,6 +299,17 @@ wxAppConsole::HandleEvent(wxEvtHandler *handler,
     (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
 
 // ----------------------------------------------------------------------------