write_long_long.cpp 348 B

123456789101112131415
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2024, Benoit BLANCHON
  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. int main() {
  10. JsonDocument doc;
  11. doc["dummy"] = static_cast<long long>(42);
  12. }