FastLED 3.9.7
Loading...
Searching...
No Matches
json.h
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#define ARDUINOJSON_ENABLE_STD_STRING 0
29
30#ifdef ARDUINOJSON_ENABLE_ARDUINO_STRING
31#undef ARDUINOJSON_ENABLE_ARDUINO_STRING
32#endif
33#define ARDUINOJSON_ENABLE_ARDUINO_STRING 0
34
35#ifdef ARDUINOJSON_ENABLE_ARDUINO_STREAM
36#undef ARDUINOJSON_ENABLE_ARDUINO_STREAM
37#endif
38#define ARDUINOJSON_ENABLE_ARDUINO_STREAM 0
39
40#ifdef ARDUINOJSON_ENABLE_ARDUINO_PRINT
41#undef ARDUINOJSON_ENABLE_ARDUINO_PRINT
42#endif
43#define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0
44
45#ifdef ARDUINOJSON_ENABLE_PROGMEM
46#undef ARDUINOJSON_ENABLE_PROGMEM
47#endif
48#define ARDUINOJSON_ENABLE_PROGMEM 0
49
50#ifdef ARDUINO
51#undef ARDUINO
52#endif
53
54#define FASTLED_JSON_GUARD
55#include "json.hpp"
56#undef FASTLED_JSON_GUARD
57
58#pragma pop_macro("ARDUINOJSON_ENABLE_PROGMEM")
59#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_PRINT")
60#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_STREAM")
61#pragma pop_macro("ARDUINOJSON_ENABLE_ARDUINO_STRING")
62#pragma pop_macro("ARDUINOJSON_ENABLE_STD_STRING")
63#pragma pop_macro("ARDUINOJSON_ENABLE_STRING_VIEW")
64#pragma pop_macro("ARDUINOJSON_ENABLE_STD_STREAM")
65#pragma pop_macro("ARDUINO")