19 lines
442 B
C++
Executable file
19 lines
442 B
C++
Executable file
#ifndef __X_PACK_RAPIDJSON_CUSTOME_H
|
|
#define __X_PACK_RAPIDJSON_CUSTOME_H
|
|
|
|
#ifndef RAPIDJSON_NOEXCEPT_ASSERT
|
|
#include <cassert>
|
|
#define RAPIDJSON_NOEXCEPT_ASSERT(x) assert(x)
|
|
#endif
|
|
|
|
#ifndef RAPIDJSON_ASSERT
|
|
#include <stdexcept>
|
|
#define RAPIDJSON_ASSERT(x) if(!(x)) throw std::runtime_error(#x)
|
|
#endif
|
|
|
|
#ifndef RAPIDJSON_WRITE_DEFAULT_FLAGS
|
|
#define RAPIDJSON_WRITE_DEFAULT_FLAGS kWriteNanAndInfFlag
|
|
#endif
|
|
|
|
#endif
|
|
|