mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	Fix: moved CLAY__MIN and CLAY__MAX to public macros (#55)
This commit is contained in:
		
							parent
							
								
									ff3b69d94f
								
							
						
					
					
						commit
						b9d02330ff
					
				
							
								
								
									
										6
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
					@ -36,6 +36,9 @@
 | 
				
			||||||
#define CLAY__CONFIG_WRAPPER(type, ...) (type) __VA_ARGS__
 | 
					#define CLAY__CONFIG_WRAPPER(type, ...) (type) __VA_ARGS__
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define CLAY__MAX(x, y) (((x) > (y)) ? (x) : (y))
 | 
				
			||||||
 | 
					#define CLAY__MIN(x, y) (((x) < (y)) ? (x) : (y))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CLAY_LAYOUT(...) Clay__AttachLayoutConfig(Clay__StoreLayoutConfig(CLAY__CONFIG_WRAPPER(Clay_LayoutConfig, __VA_ARGS__)))
 | 
					#define CLAY_LAYOUT(...) Clay__AttachLayoutConfig(Clay__StoreLayoutConfig(CLAY__CONFIG_WRAPPER(Clay_LayoutConfig, __VA_ARGS__)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CLAY_RECTANGLE(...) Clay__AttachElementConfig(CLAY__CONFIG_WRAPPER(Clay_ElementConfigUnion, { .rectangleElementConfig = Clay__StoreRectangleElementConfig(CLAY__INIT(Clay_RectangleElementConfig) __VA_ARGS__) }, CLAY__ELEMENT_CONFIG_TYPE_RECTANGLE))
 | 
					#define CLAY_RECTANGLE(...) Clay__AttachElementConfig(CLAY__CONFIG_WRAPPER(Clay_ElementConfigUnion, { .rectangleElementConfig = Clay__StoreRectangleElementConfig(CLAY__INIT(Clay_RectangleElementConfig) __VA_ARGS__) }, CLAY__ELEMENT_CONFIG_TYPE_RECTANGLE))
 | 
				
			||||||
| 
						 | 
					@ -506,9 +509,6 @@ extern bool Clay__debugMaxElementsLatch;
 | 
				
			||||||
#define CLAY__MAXFLOAT 3.40282346638528859812e+38F
 | 
					#define CLAY__MAXFLOAT 3.40282346638528859812e+38F
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CLAY__MAX(x, y) (((x) > (y)) ? (x) : (y))
 | 
					 | 
				
			||||||
#define CLAY__MIN(x, y) (((x) < (y)) ? (x) : (y))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
bool Clay__warningsEnabled = true;
 | 
					bool Clay__warningsEnabled = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Clay__Noop() {};
 | 
					void Clay__Noop() {};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue