mirror of
https://github.com/nlohmann/json.git
synced 2025-07-12 09:21:42 +03:00
🐛 fixed logic error
This commit is contained in:
@ -89,14 +89,14 @@ SOFTWARE.
|
||||
#endif
|
||||
|
||||
// allow to disable exceptions
|
||||
#if defined(JSON_NOEXCEPTION) || defined(__EXCEPTIONS)
|
||||
#define JSON_THROW(exception) std::abort()
|
||||
#define JSON_TRY if(true)
|
||||
#define JSON_CATCH(exception) if(false)
|
||||
#else
|
||||
#if not defined(JSON_NOEXCEPTION) || defined(__EXCEPTIONS)
|
||||
#define JSON_THROW(exception) throw exception
|
||||
#define JSON_TRY try
|
||||
#define JSON_CATCH(exception) catch(exception)
|
||||
#else
|
||||
#define JSON_THROW(exception) std::abort()
|
||||
#define JSON_TRY if(true)
|
||||
#define JSON_CATCH(exception) if(false)
|
||||
#endif
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user