Merge pull request #1345 from alexandre-perrin/iar-cpp-verify-static
Fix CPP compilation with IAR
This commit is contained in:
		@@ -51,10 +51,10 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Compile-time Assert
 | 
					// Compile-time Assert
 | 
				
			||||||
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
 | 
					#if defined (__cplusplus) && __cplusplus >= 201103L
 | 
				
			||||||
  #define TU_VERIFY_STATIC   _Static_assert
 | 
					 | 
				
			||||||
#elif defined (__cplusplus) && __cplusplus >= 201103L
 | 
					 | 
				
			||||||
  #define TU_VERIFY_STATIC   static_assert
 | 
					  #define TU_VERIFY_STATIC   static_assert
 | 
				
			||||||
 | 
					#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
 | 
				
			||||||
 | 
					  #define TU_VERIFY_STATIC   _Static_assert
 | 
				
			||||||
#elif defined(__CCRX__)
 | 
					#elif defined(__CCRX__)
 | 
				
			||||||
  #define TU_VERIFY_STATIC(const_expr, _mess) typedef char TU_XSTRCAT(Line, __LINE__)[(const_expr) ? 1 : 0];
 | 
					  #define TU_VERIFY_STATIC(const_expr, _mess) typedef char TU_XSTRCAT(Line, __LINE__)[(const_expr) ? 1 : 0];
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user