🚩 use JSON_ASSERT(x) instead of assert(x)
This commit is contained in:
parent
b04dc055b2
commit
98b1c6d302
16 changed files with 275 additions and 277 deletions
|
|
@ -77,6 +77,12 @@
|
|||
#define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER
|
||||
#endif
|
||||
|
||||
// allow to override assert
|
||||
#if !defined(JSON_ASSERT)
|
||||
#include <cassert> // assert
|
||||
#define JSON_ASSERT(x) assert(x)
|
||||
#endif
|
||||
|
||||
/*!
|
||||
@brief macro to briefly define a mapping between an enum and JSON
|
||||
@def NLOHMANN_JSON_SERIALIZE_ENUM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue