From 59c4febe92e02495d1e75211c5f9fda7b04b1f31 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 9 Oct 2024 19:25:33 +1300 Subject: [PATCH] compiler fixes --- clay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clay.h b/clay.h index f59a214..d80db07 100644 --- a/clay.h +++ b/clay.h @@ -93,7 +93,7 @@ static int CLAY__ELEMENT_DEFINITION_LATCH = 0; #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() 0 #define CLAY__ARGS_OVERRIDE(_0, _1, _2, _3, _4, _5, _6, NAME, ...) NAME // Publicly visible layout element macros ----------------------------------------------------- @@ -1122,7 +1122,7 @@ typedef struct float width; } Clay__MeasuredWord; -Clay__MeasuredWord CLAY__MEASURED_WORD_DEFAULT = (Clay__MeasuredWord) {}; +Clay__MeasuredWord CLAY__MEASURED_WORD_DEFAULT = CLAY__INIT(Clay__MeasuredWord) {}; // __GENERATED__ template array_define,array_define_slice,array_allocate,array_get,array_get_slice,array_add TYPE=Clay__MeasuredWord NAME=Clay__MeasuredWordArray DEFAULT_VALUE=&CLAY__MEASURED_WORD_DEFAULT #pragma region generated