diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 16:16:33 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 16:16:33 -0400 |
| commit | 0ef96cb3c0d79ecd1ca4a1f04b58ee6dd0e03586 (patch) | |
| tree | 4ed86bf5ee7b33fd258c692b7d877bc2574dccf1 /stdlib/structs.h | |
| parent | 0b76011a45b421b1473e9be75e538d3ceadf1140 (diff) | |
Fix issue with constant initializers for metamethods
Diffstat (limited to 'stdlib/structs.h')
| -rw-r--r-- | stdlib/structs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/structs.h b/stdlib/structs.h index b027a01e..bab702cd 100644 --- a/stdlib/structs.h +++ b/stdlib/structs.h @@ -17,7 +17,7 @@ PUREFUNC bool Struct$is_none(const void *obj, const TypeInfo_t *type); void Struct$serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type); void Struct$deserialize(FILE *in, void *outval, Array_t *pointers, const TypeInfo_t *type); -#define Struct$metamethods ((metamethods_t){ \ +#define Struct$metamethods { \ .hash=Struct$hash, \ .compare=Struct$compare, \ .equal=Struct$equal, \ @@ -25,9 +25,9 @@ void Struct$deserialize(FILE *in, void *outval, Array_t *pointers, const TypeInf .is_none=Struct$is_none, \ .serialize=Struct$serialize, \ .deserialize=Struct$deserialize, \ -}) +} -#define PackedData$metamethods ((metamethods_t){ \ +#define PackedData$metamethods { \ .hash=PackedData$hash, \ .compare=Struct$compare, \ .equal=PackedData$equal, \ @@ -35,6 +35,6 @@ void Struct$deserialize(FILE *in, void *outval, Array_t *pointers, const TypeInf .is_none=Struct$is_none, \ .serialize=Struct$serialize, \ .deserialize=Struct$deserialize, \ -}) +} // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
