UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RapidJsonIncludes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "HAL/Platform.h"
6#include "HAL/UnrealMemory.h"
9
10#if defined(_MSC_VER) && USING_CODE_ANALYSIS
11#pragma warning(push)
12#pragma warning(disable : 6282) // Incorrect operator: Assignment of constant in Boolean context. Consider using '==' instead
13#pragma warning(disable : 6313) // Incorrect operator: Zero-valued flag cannot be tested with bitwise-and. Use an equality test to check for zero-valued flags
14#endif
15
17#ifndef RAPIDJSON_ASSERT
18#define RAPIDJSON_ASSERT(x) check(x)
19#endif
20
21#ifndef RAPIDJSON_ERROR_CHARTYPE
22#define RAPIDJSON_ERROR_CHARTYPE TCHAR
23#endif
24
25#ifndef RAPIDJSON_ERROR_STRING
26#define RAPIDJSON_ERROR_STRING(x) TEXT(x)
27#endif
28
29// TODO: these cannot be enabled without all includes of rapidjson/document.h being re-directed to RapidJsonIncludes.h
30// which will require fixup in uLangJSON
31
32#if 0
33#ifndef RAPIDJSON_MALLOC
34#define RAPIDJSON_MALLOC FMemory::Malloc
35#endif
36
37#ifndef RAPIDJSON_REALLOC
38#define RAPIDJSON_REALLOC FMemory::Realloc
39#endif
40
41#ifndef RAPIDJSON_FREE
42#define RAPIDJSON_FREE FMemory::Free
43#endif
44#endif
45
46#if PLATFORM_LITTLE_ENDIAN
47#define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
48#else
49#define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN
50#endif
51
52#if PLATFORM_CPU_ARM_FAMILY
53#define RAPIDJSON_NEON
54#elif PLATFORM_CPU_X86_FAMILY
55#define RAPIDJSON_SSE42
56#endif
57
58#include "rapidjson/rapidjson.h"
59#include "rapidjson/document.h"
60#include "rapidjson/encodings.h"
61#include "rapidjson/writer.h"
62#include "rapidjson/prettywriter.h"
63#include "rapidjson/stringbuffer.h"
64#include "rapidjson/schema.h"
65// just for non-user facing logging purposes use the English error descriptions
66#include "rapidjson/error/en.h"
68
69#if defined(_MSC_VER) && USING_CODE_ANALYSIS
70#pragma warning(pop)
71#endif
72
#define THIRD_PARTY_INCLUDES_START
Definition GenericPlatformCompilerPreSetup.h:63
Definition Voronoi.cpp:10