From 8fb6f6408dc117724179556fe07cd88d82ba9ec2 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sat, 16 Apr 2005 22:10:55 +0000 Subject: [PATCH] Plan B - use a #error when !wxUSE_ON_FATAL_EXCEPTION git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/debugrpt/debugrpt.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/debugrpt/debugrpt.cpp b/samples/debugrpt/debugrpt.cpp index f6a0c208b2..456bf020c9 100644 --- a/samples/debugrpt/debugrpt.cpp +++ b/samples/debugrpt/debugrpt.cpp @@ -27,6 +27,10 @@ #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 // ---------------------------------------------------------------------------- @@ -137,9 +141,7 @@ class MyApp : public wxApp public: virtual bool OnInit() { -#if wxUSE_ON_FATAL_EXCEPTION wxHandleFatalExceptions(); -#endif if ( !wxApp::OnInit() ) return false; -- 2.45.2