Go to the documentation of this file.
6#ifndef JSON_ASSERTIONS_H_INCLUDED
7#define JSON_ASSERTIONS_H_INCLUDED
12#if !defined(JSON_IS_AMALGAMATION)
23#define JSON_ASSERT(condition) \
26 Json::throwLogicError("assert json failed"); \
30#define JSON_FAIL_MESSAGE(message) \
34 Json::throwLogicError(oss.str()); \
40#define JSON_ASSERT(condition) assert(condition)
44#define JSON_FAIL_MESSAGE(message) \
48 assert(false && oss.str().c_str()); \
54#define JSON_ASSERT_MESSAGE(condition, message) \
57 JSON_FAIL_MESSAGE(message); \