mirror of
https://github.com/nlohmann/json.git
synced 2024-12-18 16:57:51 +08:00
🐛 added missing include #1500
This commit is contained in:
parent
8eb7db7277
commit
5047c7a217
@ -57,6 +57,7 @@
|
|||||||
#define JSON_CATCH(exception) catch(exception)
|
#define JSON_CATCH(exception) catch(exception)
|
||||||
#define JSON_INTERNAL_CATCH(exception) catch(exception)
|
#define JSON_INTERNAL_CATCH(exception) catch(exception)
|
||||||
#else
|
#else
|
||||||
|
#include <cstdlib>
|
||||||
#define JSON_THROW(exception) std::abort()
|
#define JSON_THROW(exception) std::abort()
|
||||||
#define JSON_TRY if(true)
|
#define JSON_TRY if(true)
|
||||||
#define JSON_CATCH(exception) if(false)
|
#define JSON_CATCH(exception) if(false)
|
||||||
|
@ -172,6 +172,7 @@ using json = basic_json<>;
|
|||||||
#define JSON_CATCH(exception) catch(exception)
|
#define JSON_CATCH(exception) catch(exception)
|
||||||
#define JSON_INTERNAL_CATCH(exception) catch(exception)
|
#define JSON_INTERNAL_CATCH(exception) catch(exception)
|
||||||
#else
|
#else
|
||||||
|
#include <cstdlib>
|
||||||
#define JSON_THROW(exception) std::abort()
|
#define JSON_THROW(exception) std::abort()
|
||||||
#define JSON_TRY if(true)
|
#define JSON_TRY if(true)
|
||||||
#define JSON_CATCH(exception) if(false)
|
#define JSON_CATCH(exception) if(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user