aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/metamethods.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-15 19:59:14 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-15 19:59:14 -0400
commite5420471a7364a92521575e7abd3a29a9318001b (patch)
tree6b7aaccff3d033fdc49cee41874071637fa8b68e /src/stdlib/metamethods.c
parentc3615dc92c667899af7a11b2b25201dad5502ee6 (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.c6
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!");
}