Skip to content

Commit

Permalink
gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbarker committed Oct 16, 2024
1 parent 59c4feb commit c496ddd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
++CLAY__ELEMENT_DEFINITION_LATCH, Clay__CloseElement() \
)


// Publicly visible layout element macros
#define CLAY__6_ARGS(a, b, c, d, e, f) a, b, c, d, e, f
#define CLAY__5_ARGS(a, b, c, d, e) a, b, c, d, e
#define CLAY__4_ARGS(a, b, c, d) a, b, c, d
#define CLAY__3_ARGS(a, b, c) a, b, c
#define CLAY__2_ARGS(a, b) a, b
#define CLAY__1_ARGS(a) a
#define CLAY__0_ARGS() 0
#define CLAY__0_ARGS() Clay__Noop()
#define CLAY__ARGS_OVERRIDE(_0, _1, _2, _3, _4, _5, _6, NAME, ...) NAME

// Publicly visible layout element macros -----------------------------------------------------
Expand Down Expand Up @@ -434,7 +433,7 @@ Clay_CustomElementConfig * Clay__StoreCustomElementConfig(Clay_CustomElementConf
Clay_ScrollElementConfig * Clay__StoreScrollElementConfig(Clay_ScrollElementConfig config);
Clay_BorderElementConfig * Clay__StoreBorderElementConfig(Clay_BorderElementConfig config);
Clay_ElementId Clay__HashString(Clay_String key, uint32_t offset, uint32_t seed);
uint32_t Clay__GetOpenLayoutElementId(void);
void Clay__Noop();

extern Clay_Color Clay__debugViewHighlightColor;
extern uint32_t Clay__debugViewWidth;
Expand Down Expand Up @@ -472,6 +471,8 @@ extern uint32_t Clay__debugViewWidth;

bool Clay__warningsEnabled = true;

void Clay__Noop() {};

Clay_String CLAY__SPACECHAR = CLAY__INIT(Clay_String) { .length = 1, .chars = " " };
Clay_String CLAY__STRING_DEFAULT = CLAY__INIT(Clay_String) { .length = 0, .chars = "" };

Expand Down

0 comments on commit c496ddd

Please sign in to comment.