p26001-store-acs-soc-fw-app/util/xpack/rapidjson_custom.h
2026-09-28 21:33:04 +08:00

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