mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	CI: Test ArduinoJson's configuration
This commit is contained in:
		
							
								
								
									
										16
									
								
								extras/conf_test/avr.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								extras/conf_test/avr.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_LONG_LONG == 0, "ARDUINOJSON_USE_LONG_LONG"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 1, | ||||
|               "ARDUINOJSON_SLOT_OFFSET_SIZE"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 0, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 8, | ||||
|               "sizeof(VariantSlot)"); | ||||
|  | ||||
| void setup() {} | ||||
| void loop() {} | ||||
							
								
								
									
										16
									
								
								extras/conf_test/esp8266.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								extras/conf_test/esp8266.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_LONG_LONG == 0, "ARDUINOJSON_USE_LONG_LONG"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 2, | ||||
|               "ARDUINOJSON_SLOT_OFFSET_SIZE"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 0, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 16, | ||||
|               "sizeof(VariantSlot)"); | ||||
|  | ||||
| void setup() {} | ||||
| void loop() {} | ||||
							
								
								
									
										15
									
								
								extras/conf_test/x64.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								extras/conf_test/x64.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 4, | ||||
|               "ARDUINOJSON_SLOT_OFFSET_SIZE"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 32, | ||||
|               "sizeof(VariantSlot)"); | ||||
|  | ||||
| int main() {} | ||||
							
								
								
									
										15
									
								
								extras/conf_test/x86-linux.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								extras/conf_test/x86-linux.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 4, | ||||
|               "ARDUINOJSON_SLOT_OFFSET_SIZE"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 20, | ||||
|               "sizeof(VariantSlot)"); | ||||
|  | ||||
| int main() {} | ||||
							
								
								
									
										15
									
								
								extras/conf_test/x86-windows.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								extras/conf_test/x86-windows.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_SLOT_OFFSET_SIZE == 4, | ||||
|               "ARDUINOJSON_SLOT_OFFSET_SIZE"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN"); | ||||
|  | ||||
| static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE"); | ||||
|  | ||||
| static_assert(sizeof(ARDUINOJSON_NAMESPACE::VariantSlot) == 24, | ||||
|               "sizeof(VariantSlot)"); | ||||
|  | ||||
| int main() {} | ||||
		Reference in New Issue
	
	Block a user