From c106aefc086aa317ff13a2a0ff19c859583763f9 Mon Sep 17 00:00:00 2001 From: woodfell Date: Mon, 29 Sep 2025 21:16:01 -0300 Subject: [PATCH] Fix disabling exceptions --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index 4de98e7e72..03071a9595 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -89,7 +89,7 @@ SOFTWARE. #endif // allow to disable exceptions -#if not defined(JSON_NOEXCEPTION) || defined(__EXCEPTIONS) +#if not defined(JSON_NOEXCEPTION) && defined(__EXCEPTIONS) #define JSON_THROW(exception) throw exception #define JSON_TRY try #define JSON_CATCH(exception) catch(exception)