Go to the documentation of this file. 6 #ifndef CPPTL_JSON_ASSERTIONS_H_INCLUDED 7 #define CPPTL_JSON_ASSERTIONS_H_INCLUDED 11 #if !defined(JSON_IS_AMALGAMATION) 13 #endif // if !defined(JSON_IS_AMALGAMATION) 15 #if JSON_USE_EXCEPTION 17 #define JSON_ASSERT(condition) \ 18 assert(condition); // @todo <= change this into an exception throw 19 #define JSON_FAIL_MESSAGE(message) throw std::runtime_error(message); 20 #else // JSON_USE_EXCEPTION 21 #define JSON_ASSERT(condition) assert(condition); 27 #define JSON_FAIL_MESSAGE(message) \ 29 assert(false &&message); \ 30 strcpy(reinterpret_cast<char *>(666), message); \ 36 #define JSON_ASSERT_MESSAGE(condition, message) \ 38 JSON_FAIL_MESSAGE(message) \ 41 #endif // CPPTL_JSON_ASSERTIONS_H_INCLUDED