File tree Expand file tree Collapse file tree 5 files changed +10
-2
lines changed
Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ static_assert(ARDUINOJSON_USE_LONG_LONG == 0, "ARDUINOJSON_USE_LONG_LONG");
66
77static_assert (ARDUINOJSON_SLOT_ID_SIZE == 1 , " ARDUINOJSON_SLOT_ID_SIZE" );
88
9+ static_assert (ARDUINOJSON_POOL_CAPACITY == 16 , " ARDUINOJSON_POOL_CAPACITY" );
10+
911static_assert (ARDUINOJSON_LITTLE_ENDIAN == 1 , " ARDUINOJSON_LITTLE_ENDIAN" );
1012
1113static_assert (ARDUINOJSON_USE_DOUBLE == 0 , " ARDUINOJSON_USE_DOUBLE" );
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG");
44
55static_assert (ARDUINOJSON_SLOT_ID_SIZE == 2 , " ARDUINOJSON_SLOT_ID_SIZE" );
66
7+ static_assert (ARDUINOJSON_POOL_CAPACITY == 128 , " ARDUINOJSON_POOL_CAPACITY" );
8+
79static_assert (ARDUINOJSON_LITTLE_ENDIAN == 1 , " ARDUINOJSON_LITTLE_ENDIAN" );
810
911static_assert (ARDUINOJSON_USE_DOUBLE == 1 , " ARDUINOJSON_USE_DOUBLE" );
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG");
44
55static_assert (ARDUINOJSON_SLOT_ID_SIZE == 4 , " ARDUINOJSON_SLOT_ID_SIZE" );
66
7+ static_assert (ARDUINOJSON_POOL_CAPACITY == 256 , " ARDUINOJSON_POOL_CAPACITY" );
8+
79static_assert (ARDUINOJSON_LITTLE_ENDIAN == 1 , " ARDUINOJSON_LITTLE_ENDIAN" );
810
911static_assert (ARDUINOJSON_USE_DOUBLE == 1 , " ARDUINOJSON_USE_DOUBLE" );
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG");
44
55static_assert (ARDUINOJSON_SLOT_ID_SIZE == 2 , " ARDUINOJSON_SLOT_ID_SIZE" );
66
7+ static_assert (ARDUINOJSON_POOL_CAPACITY == 128 , " ARDUINOJSON_POOL_CAPACITY" );
8+
79static_assert (ARDUINOJSON_LITTLE_ENDIAN == 1 , " ARDUINOJSON_LITTLE_ENDIAN" );
810
911static_assert (ARDUINOJSON_USE_DOUBLE == 1 , " ARDUINOJSON_USE_DOUBLE" );
Original file line number Diff line number Diff line change 110110
111111// Capacity of each variant pool (in slots)
112112#ifndef ARDUINOJSON_POOL_CAPACITY
113- # if ARDUINOJSON_SIZEOF_POINTER <= 2
113+ # if ARDUINOJSON_SLOT_ID_SIZE == 1
114114# define ARDUINOJSON_POOL_CAPACITY 16 // 96 bytes
115- # elif ARDUINOJSON_SIZEOF_POINTER == 4
115+ # elif ARDUINOJSON_SLOT_ID_SIZE == 2
116116# define ARDUINOJSON_POOL_CAPACITY 128 // 1024 bytes
117117# else
118118# define ARDUINOJSON_POOL_CAPACITY 256 // 4096 bytes
You can’t perform that action at this time.
0 commit comments