forked from bblanchon/ArduinoJson
Remove JSON_ARRAY_SIZE(), JSON_OBJECT_SIZE(), and JSON_STRING_SIZE()
This commit is contained in:
1 parent
0328f66340
commit
3f43c2b816
36 files changed
+395
-340
No files matched your search
@@ -5,9 +5,11 @@
|
||||
#include <ArduinoJson.h>
|
||||
#include <catch.hpp>
|
||||
|
||||
using ArduinoJson::detail::sizeofArray;
|
||||
|
||||
template <typename TArray>
|
||||
static void run_iterator_test() {
|
||||
JsonDocument doc(JSON_ARRAY_SIZE(2));
|
||||
JsonDocument doc(sizeofArray(2));
|
||||
JsonArray tmp = doc.to<JsonArray>();
|
||||
tmp.add(12);
|
||||
tmp.add(34);
|
||||
|
||||
Reference in new issue
Block a user