Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers compatibility.hpp Source File

compatibility.hpp

00001 // ArduinoJson - arduinojson.org
00002 // Copyright Benoit Blanchon 2014-2021
00003 // MIT License
00004 //
00005 // clang-format off
00006 
00007 #ifdef __GNUC__
00008 
00009 #define ARDUINOJSON_PRAGMA(x) _Pragma(#x)
00010 
00011 #define ARDUINOJSON_COMPILE_ERROR(msg) ARDUINOJSON_PRAGMA(GCC error msg)
00012 
00013 #define ARDUINOJSON_STRINGIFY(S) #S
00014 
00015 #define ARDUINOJSON_DEPRECATION_ERROR(X, Y) \
00016   ARDUINOJSON_COMPILE_ERROR(ARDUINOJSON_STRINGIFY(X is a Y from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6))
00017 
00018 #define StaticJsonBuffer ARDUINOJSON_DEPRECATION_ERROR(StaticJsonBuffer, class)
00019 #define DynamicJsonBuffer ARDUINOJSON_DEPRECATION_ERROR(DynamicJsonBuffer, class)
00020 #define JsonBuffer ARDUINOJSON_DEPRECATION_ERROR(JsonBuffer, class)
00021 #define RawJson ARDUINOJSON_DEPRECATION_ERROR(RawJson, function)
00022 
00023 #endif