mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	[Core] Add check for supported C/C++ versions (#144)
This commit is contained in:
		
							parent
							
								
									7cc719e61f
								
							
						
					
					
						commit
						a431254de4
					
				
							
								
								
									
										8
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
					@ -21,6 +21,14 @@
 | 
				
			||||||
#ifndef CLAY_HEADER
 | 
					#ifndef CLAY_HEADER
 | 
				
			||||||
#define CLAY_HEADER
 | 
					#define CLAY_HEADER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !( \
 | 
				
			||||||
 | 
					    (defined(__cplusplus) && __cplusplus >= 202002L) || \
 | 
				
			||||||
 | 
					    (defined(__STDC__) && __STDC__ == 1 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
 | 
				
			||||||
 | 
					    defined(_MSC_VER) \
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					#error "Clay requires C99, C++20, or MSVC"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CLAY_WASM
 | 
					#ifdef CLAY_WASM
 | 
				
			||||||
#define CLAY_WASM_EXPORT(name) __attribute__((export_name(name)))
 | 
					#define CLAY_WASM_EXPORT(name) __attribute__((export_name(name)))
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue