Skip to content

Commit

Permalink
Fix: moved CLAY__MIN and CLAY__MAX to public macros (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksiiBulba authored Dec 18, 2024
1 parent ff3b69d commit b9d0233
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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() {};
Expand Down

0 comments on commit b9d0233

Please sign in to comment.