FastLED 3.9.15
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1#pragma once
2
3// Arduino JSON may be included by the user, so we need to save the current state
4// of the macros and restore them after including the library
5#pragma push_macro("ARDUINO")
6#pragma push_macro("ARDUINOJSON_ENABLE_STD_STREAM")
7#pragma push_macro("ARDUINOJSON_ENABLE_STRING_VIEW")
8#pragma push_macro("ARDUINOJSON_ENABLE_STD_STRING")
9#pragma push_macro("ARDUINOJSON_ENABLE_ARDUINO_STRING")
10#pragma push_macro("ARDUINOJSON_ENABLE_ARDUINO_STREAM")
11#pragma push_macro("ARDUINOJSON_ENABLE_ARDUINO_PRINT")
12#pragma push_macro("ARDUINOJSON_ENABLE_PROGMEM")
13#pragma push_macro("min")
14#pragma push_macro("max")
15
16#define ARDUINOJSON_USE_LONG_LONG 1
17
18// Safely undefine FLArduinoJson macros if defined
19#ifdef ARDUINOJSON_ENABLE_STD_STREAM
20#undef ARDUINOJSON_ENABLE_STD_STREAM
21#endif
22#define ARDUINOJSON_ENABLE_STD_STREAM 0
23
24#ifdef ARDUINOJSON_ENABLE_STRING_VIEW
25#undef ARDUINOJSON_ENABLE_STRING_VIEW
26#endif
27#define ARDUINOJSON_ENABLE_STRING_VIEW 0
28
29#ifdef ARDUINOJSON_ENABLE_STD_STRING
30#undef ARDUINOJSON_ENABLE_STD_STRING
31#endif
32
33#ifdef __EMSCRIPTEN__
34#define ARDUINOJSON_ENABLE_STD_STRING 1
35#else
36#define ARDUINOJSON_ENABLE_STD_STRING 0
37#endif
38
39#ifdef ARDUINOJSON_ENABLE_ARDUINO_STRING
40#undef ARDUINOJSON_ENABLE_ARDUINO_STRING
41#endif
42#define ARDUINOJSON_ENABLE_ARDUINO_STRING 0
43
44#ifdef ARDUINOJSON_ENABLE_ARDUINO_STREAM
45#undef ARDUINOJSON_ENABLE_ARDUINO_STREAM
46#endif
47#define ARDUINOJSON_ENABLE_ARDUINO_STREAM 0
48
49#ifdef ARDUINOJSON_ENABLE_ARDUINO_PRINT
50#undef ARDUINOJSON_ENABLE_ARDUINO_PRINT
51#endif
52#define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
53
54#ifdef ARDUINOJSON_ENABLE_PROGMEM
55#undef ARDUINOJSON_ENABLE_PROGMEM
56#endif
57#define ARDUINOJSON_ENABLE_PROGMEM 0
58
59#ifdef ARDUINO
60#undef ARDUINO
61#endif
62
63#ifdef min
64#undef min
65#endif
66
67#ifdef max
68#undef max
69#endif
70
71
72#define FASTLED_JSON_GUARD
73#include "json.hpp"
74#undef FASTLED_JSON_GUARD
75
76
77#pragma pop_macro("max")
78#pragma pop_macro("min")
79#pragma pop_macro("ARDUINOJSON_ENABLE_PROGMEM")
80#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_PRINT")
81#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_STREAM")
82#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_STRING")
83#pragma pop_macro("ARDUINOJSON_ENABLE_STD_STRING")
84#pragma pop_macro("ARDUINOJSON_ENABLE_STRING_VIEW")
85#pragma pop_macro("ARDUINOJSON_ENABLE_STD_STREAM")
86#pragma pop_macro("ARDUINO")