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
14// Safely undefine FLArduinoJson macros if defined
15#ifdef ARDUINOJSON_ENABLE_STD_STREAM
16#undef ARDUINOJSON_ENABLE_STD_STREAM
17#endif
18#define ARDUINOJSON_ENABLE_STD_STREAM 0
19
20#ifdef ARDUINOJSON_ENABLE_STRING_VIEW
21#undef ARDUINOJSON_ENABLE_STRING_VIEW
22#endif
23#define ARDUINOJSON_ENABLE_STRING_VIEW 0
24
25#ifdef ARDUINOJSON_ENABLE_STD_STRING
26#undef ARDUINOJSON_ENABLE_STD_STRING
27#endif
28
29#ifdef __EMSCRIPTEN__
30#define ARDUINOJSON_ENABLE_STD_STRING 1
31#else
32#define ARDUINOJSON_ENABLE_STD_STRING 0
33#endif
34
35#ifdef ARDUINOJSON_ENABLE_ARDUINO_STRING
36#undef ARDUINOJSON_ENABLE_ARDUINO_STRING
37#endif
38#define ARDUINOJSON_ENABLE_ARDUINO_STRING 0
39
40#ifdef ARDUINOJSON_ENABLE_ARDUINO_STREAM
41#undef ARDUINOJSON_ENABLE_ARDUINO_STREAM
42#endif
43#define ARDUINOJSON_ENABLE_ARDUINO_STREAM 0
44
45#ifdef ARDUINOJSON_ENABLE_ARDUINO_PRINT
46#undef ARDUINOJSON_ENABLE_ARDUINO_PRINT
47#endif
48#define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
49
50#ifdef ARDUINOJSON_ENABLE_PROGMEM
51#undef ARDUINOJSON_ENABLE_PROGMEM
52#endif
53#define ARDUINOJSON_ENABLE_PROGMEM 0
54
55#ifdef ARDUINO
56#undef ARDUINO
57#endif
58
59
60#define FASTLED_JSON_GUARD
61#include "json.hpp"
62#undef FASTLED_JSON_GUARD
63
64#pragma pop_macro("ARDUINOJSON_ENABLE_PROGMEM")
65#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_PRINT")
66#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_STREAM")
67#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_STRING")
68#pragma pop_macro("ARDUINOJSON_ENABLE_STD_STRING")
69#pragma pop_macro("ARDUINOJSON_ENABLE_STRING_VIEW")
70#pragma pop_macro("ARDUINOJSON_ENABLE_STD_STREAM")
71#pragma pop_macro("ARDUINO")