diff --git a/src/json.hpp b/src/json.hpp index 5e998a1f71..30bcce5cee 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -86,7 +86,7 @@ SOFTWARE. // allow to disable exceptions #ifdef JSON_NOEXCEPTION - #define JSON_THROW(exception) + #define JSON_THROW(exception) std::abort() #define JSON_TRY if(true) #define JSON_CATCH(exception) if(false) #else diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 8a2fbec4ba..c437498547 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -86,7 +86,7 @@ SOFTWARE. // allow to disable exceptions #ifdef JSON_NOEXCEPTION - #define JSON_THROW(exception) + #define JSON_THROW(exception) std::abort() #define JSON_TRY if(true) #define JSON_CATCH(exception) if(false) #else