Skip to content

Commit

Permalink
Easy way to override JSON_THROW action with fno-exceptions nlohmann#938
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaido committed Jan 27, 2018
1 parent 0e2211d commit 053f268
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ using json = basic_json<>;
#define JSON_TRY try
#define JSON_CATCH(exception) catch(exception)
#else
#if !defined(JSON_THROW)
#define JSON_THROW(exception) std::abort()
#endif
#define JSON_TRY if(true)
#define JSON_CATCH(exception) if(false)
#endif
Expand Down

0 comments on commit 053f268

Please sign in to comment.