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/functiontype.h | |
| parent | 0b76011a45b421b1473e9be75e538d3ceadf1140 (diff) | |
Fix issue with constant initializers for metamethods
Diffstat (limited to 'stdlib/functiontype.h')
| -rw-r--r-- | stdlib/functiontype.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/functiontype.h b/stdlib/functiontype.h index 9252f5fc..d308be96 100644 --- a/stdlib/functiontype.h +++ b/stdlib/functiontype.h @@ -17,12 +17,12 @@ int64_t get_function_line_num(void *fn); Text_t Func$as_text(const void *fn, bool colorize, const TypeInfo_t *type); PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t*); -#define Func$metamethods ((metamethods_t){ \ +#define Func$metamethods { \ .as_text=Func$as_text, \ .is_none=Func$is_none, \ .serialize=cannot_serialize, \ .deserialize=cannot_deserialize, \ -}) +} #define Function$info(typestr) &((TypeInfo_t){.size=sizeof(void*), .align=__alignof__(void*), \ .tag=FunctionInfo, .FunctionInfo.type_str=typestr, \ |
