Skip to content

Commit

Permalink
set JSON_THROW to std::abort (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Nov 13, 2016
1 parent 54224e3 commit 417ed35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 417ed35

Please sign in to comment.