From b9d02330ffe28297cde44b06627c16d92d9fe760 Mon Sep 17 00:00:00 2001 From: Oleksii Bulba Date: Thu, 19 Dec 2024 00:29:12 +0400 Subject: [PATCH] Fix: moved CLAY__MIN and CLAY__MAX to public macros (#55) --- clay.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clay.h b/clay.h index 6f1997d..6a37280 100644 --- a/clay.h +++ b/clay.h @@ -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() {};