compatibility.hpp 810 B

1234567891011121314151617181920212223
  1. // ArduinoJson - arduinojson.org
  2. // Copyright Benoit Blanchon 2014-2019
  3. // MIT License
  4. //
  5. // clang-format off
  6. #ifdef __GNUC__
  7. #define ARDUINOJSON_PRAGMA(x) _Pragma(#x)
  8. #define ARDUINOJSON_COMPILE_ERROR(msg) ARDUINOJSON_PRAGMA(GCC error msg)
  9. #define ARDUINOJSON_STRINGIFY(S) #S
  10. #define ARDUINOJSON_DEPRECATION_ERROR(X, Y) \
  11. 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))
  12. #define StaticJsonBuffer ARDUINOJSON_DEPRECATION_ERROR(StaticJsonBuffer, class)
  13. #define DynamicJsonBuffer ARDUINOJSON_DEPRECATION_ERROR(DynamicJsonBuffer, class)
  14. #define JsonBuffer ARDUINOJSON_DEPRECATION_ERROR(JsonBuffer, class)
  15. #define RawJson ARDUINOJSON_DEPRECATION_ERROR(RawJson, function)
  16. #endif