diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
| commit | e5420471a7364a92521575e7abd3a29a9318001b (patch) | |
| tree | 6b7aaccff3d033fdc49cee41874071637fa8b68e /src/stdlib/metamethods.c | |
| parent | c3615dc92c667899af7a11b2b25201dad5502ee6 (diff) | |
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/stdlib/metamethods.c')
| -rw-r--r-- | src/stdlib/metamethods.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stdlib/metamethods.c b/src/stdlib/metamethods.c index 6ee52222..a7c9424b 100644 --- a/src/stdlib/metamethods.c +++ b/src/stdlib/metamethods.c @@ -108,15 +108,17 @@ public int generic_print(const void *obj, bool colorize, const TypeInfo_t *type) } __attribute__((noreturn)) -public void cannot_serialize(const void*, FILE*, Table_t*, const TypeInfo_t *type) +public void cannot_serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type) { + (void)obj, (void)out, (void)pointers; Text_t typestr = generic_as_text(NULL, false, type); fail("Values of type ", typestr, " cannot be serialized or deserialized!"); } __attribute__((noreturn)) -public void cannot_deserialize(FILE*, void*, List_t*, const TypeInfo_t *type) +public void cannot_deserialize(FILE *in, void *obj, List_t *pointers, const TypeInfo_t *type) { + (void)obj, (void)in, (void)pointers; Text_t typestr = generic_as_text(NULL, false, type); fail("Values of type ", typestr, " cannot be serialized or deserialized!"); } |
