mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Replace ARDUINOJSON_NAMESPACE with an inline namespace (#1820)
				
					
				
			This commit is contained in:
		| @@ -5,7 +5,7 @@ | ||||
| #include <ArduinoJson/StringStorage/StringCopier.hpp> | ||||
| #include <catch.hpp> | ||||
|  | ||||
| using namespace ARDUINOJSON_NAMESPACE; | ||||
| using namespace ArduinoJson::detail; | ||||
|  | ||||
| TEST_CASE("StringCopier") { | ||||
|   char buffer[4096]; | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
| #include <ArduinoJson/Memory/MemoryPool.hpp> | ||||
| #include <catch.hpp> | ||||
|  | ||||
| using namespace ARDUINOJSON_NAMESPACE; | ||||
| using namespace ArduinoJson::detail; | ||||
|  | ||||
| TEST_CASE("MemoryPool::allocVariant()") { | ||||
|   char buffer[4096]; | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| #include <ArduinoJson/Strings/StringAdapters.hpp> | ||||
| #include <catch.hpp> | ||||
|  | ||||
| using namespace ARDUINOJSON_NAMESPACE; | ||||
| using namespace ArduinoJson::detail; | ||||
|  | ||||
| static const size_t poolCapacity = 512; | ||||
|  | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| #include <ArduinoJson/Strings/StringAdapters.hpp> | ||||
| #include <catch.hpp> | ||||
|  | ||||
| using namespace ARDUINOJSON_NAMESPACE; | ||||
| using namespace ArduinoJson::detail; | ||||
|  | ||||
| static const char* saveString(MemoryPool& pool, const char* s) { | ||||
|   return pool.saveString(adaptString(const_cast<char*>(s))); | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
| #include <ArduinoJson/Memory/MemoryPool.hpp> | ||||
| #include <catch.hpp> | ||||
|  | ||||
| using namespace ARDUINOJSON_NAMESPACE; | ||||
| using namespace ArduinoJson::detail; | ||||
|  | ||||
| TEST_CASE("MemoryPool::capacity()") { | ||||
|   char buffer[4096]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user