]> git.saurik.com Git - wxWidgets.git/commitdiff
Plan B - use a #error when !wxUSE_ON_FATAL_EXCEPTION
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sat, 16 Apr 2005 22:10:55 +0000 (22:10 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sat, 16 Apr 2005 22:10:55 +0000 (22:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/debugrpt/debugrpt.cpp

index f6a0c208b2ef3900499178c2b817367060f05bf5..456bf020c9062440ab222b13d874fe906cf8b4aa 100644 (file)
     #error "This sample can't be built without wxUSE_DEBUGREPORT"
 #endif // wxUSE_DEBUGREPORT
 
     #error "This sample can't be built without wxUSE_DEBUGREPORT"
 #endif // wxUSE_DEBUGREPORT
 
+#if !wxUSE_ON_FATAL_EXCEPTION
+    #error "This sample can't be built without wxUSE_ON_FATAL_EXCEPTION"
+#endif // wxUSE_ON_FATAL_EXCEPTION
+
 // ----------------------------------------------------------------------------
 // custom debug reporting class
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // custom debug reporting class
 // ----------------------------------------------------------------------------
@@ -137,9 +141,7 @@ class MyApp : public wxApp
 public:
     virtual bool OnInit()
     {
 public:
     virtual bool OnInit()
     {
-#if wxUSE_ON_FATAL_EXCEPTION
         wxHandleFatalExceptions();
         wxHandleFatalExceptions();
-#endif
 
         if ( !wxApp::OnInit() )
             return false;
 
         if ( !wxApp::OnInit() )
             return false;