mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			831 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			831 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // ArduinoJson - https://arduinojson.org
 | |
| // Copyright © 2014-2022, Benoit BLANCHON
 | |
| // MIT License
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <ArduinoJson/Configuration.hpp>
 | |
| #include <ArduinoJson/Namespace.hpp>
 | |
| 
 | |
| #include <stdint.h>  // int64_t
 | |
| 
 | |
| namespace ARDUINOJSON_NAMESPACE {
 | |
| 
 | |
| #if ARDUINOJSON_USE_LONG_LONG
 | |
| typedef int64_t JsonInteger;
 | |
| typedef uint64_t JsonUInt;
 | |
| #else
 | |
| typedef long JsonInteger;
 | |
| typedef unsigned long JsonUInt;
 | |
| #endif
 | |
| 
 | |
| }  // namespace ARDUINOJSON_NAMESPACE
 | |
| 
 | |
| #define ARDUINOJSON_ASSERT_INTEGER_TYPE_IS_SUPPORTED(T)                  \
 | |
|   static_assert(sizeof(T) <= sizeof(ARDUINOJSON_NAMESPACE::JsonInteger), \
 | |
|                 "To use 64-bit integers with ArduinoJson, you must set " \
 | |
|                 "ARDUINOJSON_USE_LONG_LONG to 1. See "                   \
 | |
|                 "https://arduinojson.org/v6/api/config/use_long_long/");
 |