From 7efaa702da88a4213ddc0ed5dddd0a7a5fbf3f60 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Jan 2005 13:39:08 +0000 Subject: [PATCH] wxUSE_CRASHREPORT and wxUSE_STACKWALKER can't be used if wxUSE_ON_FATAL_EXCEPTION == 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/chkconf.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index b2ab5e68c5..8aaa475d37 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -1144,6 +1144,27 @@ # endif # endif # endif /* wxUSE_DYNAMIC_LOADER */ + +# if !wxUSE_ON_FATAL_EXCEPTION +# if wxUSE_CRASHREPORT +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION" +# else +# undef wxUSE_CRASHREPORT +# define wxUSE_CRASHREPORT 0 +# endif +# endif + +# if wxUSE_STACKWALKER +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_STACKWALKER requires wxUSE_ON_FATAL_EXCEPTION" +# else +# undef wxUSE_STACKWALKER +# define wxUSE_STACKWALKER 0 +# endif +# endif +# endif /* wxUSE_ON_FATAL_EXCEPTION */ + #endif /* wxMSW */ /* wxMAC-specific dependencies */