|
NIM 跨平台 C++ SDK
|
浏览该文件的文档.
6#ifndef NIM_CPP_WRAPPER_UTIL_JSON_ASSERTIONS_H_INCLUDED
7#define NIM_CPP_WRAPPER_UTIL_JSON_ASSERTIONS_H_INCLUDED
12#if !defined(JSON_IS_AMALGAMATION)
23#define JSON_ASSERT(condition) \
26 nim_cpp_wrapper_util::Json::throwLogicError("assert json failed"); \
30#define JSON_FAIL_MESSAGE(message) \
34 nim_cpp_wrapper_util::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); \