mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Allow using PROGMEM outside of Arduino (fixes #1903)
This commit is contained in:
		| @@ -2,17 +2,16 @@ | ||||
| // Copyright © 2014-2023, Benoit BLANCHON | ||||
| // MIT License | ||||
|  | ||||
| #define ARDUINOJSON_ENABLE_PROGMEM 1 | ||||
|  | ||||
| #include "custom_string.hpp" | ||||
| #include "progmem_emulation.hpp" | ||||
| #include "weird_strcmp.hpp" | ||||
| #include <Arduino.h> | ||||
|  | ||||
| #include <ArduinoJson/Strings/IsString.hpp> | ||||
| #include <ArduinoJson/Strings/StringAdapters.hpp> | ||||
|  | ||||
| #include <catch.hpp> | ||||
|  | ||||
| #include "custom_string.hpp" | ||||
| #include "weird_strcmp.hpp" | ||||
|  | ||||
| using namespace ArduinoJson::detail; | ||||
|  | ||||
| TEST_CASE("ZeroTerminatedRamString") { | ||||
|   | ||||
| @@ -2,10 +2,13 @@ | ||||
| // Copyright © 2014-2023, Benoit BLANCHON | ||||
| // MIT License | ||||
|  | ||||
| #define ARDUINOJSON_ENABLE_ARDUINO_STRING 1 | ||||
| #include <Arduino.h> | ||||
|  | ||||
| #define ARDUINOJSON_STRING_BUFFER_SIZE 5 | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| #include <catch.hpp> | ||||
|  | ||||
| #include "custom_string.hpp" | ||||
|  | ||||
| using namespace ArduinoJson::detail; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user