Skip to content

Commit 59c4feb

Browse files
committed
compiler fixes
1 parent e9dc187 commit 59c4feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clay.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
9393
#define CLAY__3_ARGS(a, b, c) a, b, c
9494
#define CLAY__2_ARGS(a, b) a, b
9595
#define CLAY__1_ARGS(a) a
96-
#define CLAY__0_ARGS(...) 0
96+
#define CLAY__0_ARGS() 0
9797
#define CLAY__ARGS_OVERRIDE(_0, _1, _2, _3, _4, _5, _6, NAME, ...) NAME
9898

9999
// Publicly visible layout element macros -----------------------------------------------------
@@ -1122,7 +1122,7 @@ typedef struct
11221122
float width;
11231123
} Clay__MeasuredWord;
11241124

1125-
Clay__MeasuredWord CLAY__MEASURED_WORD_DEFAULT = (Clay__MeasuredWord) {};
1125+
Clay__MeasuredWord CLAY__MEASURED_WORD_DEFAULT = CLAY__INIT(Clay__MeasuredWord) {};
11261126

11271127
// __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
11281128
#pragma region generated

0 commit comments

Comments
 (0)