Defines | |
#define | JSON_ASSERT(condition) assert(condition); |
#define | JSON_FAIL_MESSAGE(message) do{std::ostringstream oss; oss << message; throw std::runtime_error(oss.str());}while(0) |
#define | JSON_ASSERT_MESSAGE(condition, message) |
#define JSON_ASSERT | ( | condition | ) | assert(condition); |
#define JSON_ASSERT_MESSAGE | ( | condition, | |||
message | ) |
Value:
if (!(condition)) { \ JSON_FAIL_MESSAGE(message); \ }
#define JSON_FAIL_MESSAGE | ( | message | ) | do{std::ostringstream oss; oss << message; throw std::runtime_error(oss.str());}while(0) |