整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
19
util/xpack/rapidjson_custom.h
Executable file
19
util/xpack/rapidjson_custom.h
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue