From 40f32853abc3664ba0b8a3854b3f72959daed229 Mon Sep 17 00:00:00 2001 From: Aaron Albers Date: Wed, 30 Oct 2019 10:10:44 -0600 Subject: [PATCH] Fixed Exceptions check logic - Only force `std::abort()` over `throw` if `__cpp_exceptions` is disabled rather than enabled. --- include/frozen/bits/exceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/frozen/bits/exceptions.h b/include/frozen/bits/exceptions.h index cea65ea..9e6413b 100755 --- a/include/frozen/bits/exceptions.h +++ b/include/frozen/bits/exceptions.h @@ -23,7 +23,7 @@ #ifndef FROZEN_LETITGO_EXCEPTIONS_H #define FROZEN_LETITGO_EXCEPTIONS_H -#if defined(FROZEN_NO_EXCEPTIONS) || (defined(_MSC_VER) && !defined(_CPPUNWIND)) || (defined(__cpp_exceptions) && __cpp_exceptions) +#if defined(FROZEN_NO_EXCEPTIONS) || (defined(_MSC_VER) && !defined(_CPPUNWIND)) || (defined(__cpp_exceptions) && !__cpp_exceptions) #include #define FROZEN_THROW_OR_ABORT(_) std::abort()