整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

19
util/xpack/rapidjson_custom.h Executable file
View 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