mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-06-25 17:31:36 +02:00
This avoids the integer overflow when `ARDUINOJSON_SLOT_ID_SIZE=1` on 64-bit architectures.
17 lines
518 B
C++
17 lines
518 B
C++
#include <ArduinoJson.h>
|
|
|
|
static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG");
|
|
|
|
static_assert(ARDUINOJSON_SLOT_ID_SIZE == 2, "ARDUINOJSON_SLOT_ID_SIZE");
|
|
|
|
static_assert(ARDUINOJSON_POOL_CAPACITY == 128, "ARDUINOJSON_POOL_CAPACITY");
|
|
|
|
static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN");
|
|
|
|
static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE");
|
|
|
|
static_assert(ArduinoJson::detail::ResourceManager::slotSize == 8, "slot size");
|
|
|
|
void setup() {}
|
|
void loop() {}
|