File tree Expand file tree Collapse file tree 5 files changed +30
-0
lines changed Expand file tree Collapse file tree 5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 7
7
* Fixed ` JsonBuffer::parse() ` not respecting nesting limit correctly (issue #693 )
8
8
* Fixed inconsistencies in nesting level counting (PR #695 from Zhenyu Wu)
9
9
* Fixed null values that could be pass to ` strcmp() ` (PR #745 from Mike Karlesky)
10
+ * Added macros ` ARDUINOJSON_VERSION ` , ` ARDUINOJSON_VERSION_MAJOR ` ...
10
11
11
12
v5.13.1
12
13
-------
Original file line number Diff line number Diff line change 4
4
5
5
#pragma once
6
6
7
+ #include " ArduinoJson/version.hpp"
8
+
7
9
#include " ArduinoJson/DynamicJsonBuffer.hpp"
8
10
#include " ArduinoJson/JsonArray.hpp"
9
11
#include " ArduinoJson/JsonObject.hpp"
Original file line number Diff line number Diff line change
1
+ // ArduinoJson - arduinojson.org
2
+ // Copyright Benoit Blanchon 2014-2018
3
+ // MIT License
4
+
5
+ #pragma once
6
+
7
+ #define ARDUINOJSON_VERSION " 5.13.1"
8
+ #define ARDUINOJSON_VERSION_MAJOR 5
9
+ #define ARDUINOJSON_VERSION_MINOR 13
10
+ #define ARDUINOJSON_VERSION_REVISION 1
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ add_executable(MiscTests
11
11
StringTraits.cpp
12
12
TypeTraits.cpp
13
13
unsigned_char.cpp
14
+ version .cpp
14
15
vla.cpp
15
16
)
16
17
Original file line number Diff line number Diff line change
1
+ // ArduinoJson - arduinojson.org
2
+ // Copyright Benoit Blanchon 2014-2018
3
+ // MIT License
4
+
5
+ #include < ArduinoJson/version.hpp>
6
+ #include < catch.hpp>
7
+ #include < sstream>
8
+
9
+ TEST_CASE (" ARDUINOJSON_VERSION" ) {
10
+ std::stringstream version;
11
+
12
+ version << ARDUINOJSON_VERSION_MAJOR << " ." << ARDUINOJSON_VERSION_MINOR
13
+ << " ." << ARDUINOJSON_VERSION_REVISION;
14
+
15
+ REQUIRE (version.str () == ARDUINOJSON_VERSION);
16
+ }
You can’t perform that action at this time.
0 commit comments