write_long_long.cpp 418 B

1234567891011121314151617181920
  1. // ArduinoJson - arduinojson.org
  2. // Copyright Benoit Blanchon 2014-2021
  3. // MIT License
  4. #define ARDUINOJSON_USE_LONG_LONG 0
  5. #include <ArduinoJson.h>
  6. #if defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ >= 8
  7. #error This test requires sizeof(long) < 8
  8. #endif
  9. #if !ARDUINOJSON_HAS_LONG_LONG
  10. #error This test requires C++11
  11. #endif
  12. int main() {
  13. DynamicJsonDocument doc(1024);
  14. doc["dummy"] = static_cast<long long>(42);
  15. }