Fix: moved CLAY__MIN and CLAY__MAX to public macros (#55)

This commit is contained in:
Oleksii Bulba 2024-12-19 00:29:12 +04:00 committed by GitHub
parent ff3b69d94f
commit b9d02330ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
clay.h
View File

@ -36,6 +36,9 @@
#define CLAY__CONFIG_WRAPPER(type, ...) (type) __VA_ARGS__
#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_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
#endif
#define CLAY__MAX(x, y) (((x) > (y)) ? (x) : (y))
#define CLAY__MIN(x, y) (((x) < (y)) ? (x) : (y))
bool Clay__warningsEnabled = true;
void Clay__Noop() {};