From ba0eb2042cefce45efa5c1ad294f05d0122815ee Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 22 Jun 2024 11:51:59 +0100 Subject: fix circular dependencies --- val.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'val.c') diff --git a/val.c b/val.c index 8e351ff..ec3e636 100644 --- a/val.c +++ b/val.c @@ -64,6 +64,9 @@ void print_val(Val v) { case OTY_STRING: printf("%s", AS_CSTRING(v)); break; + case OTY_FUNC: + printf("[function Function]"); + break; } break; } @@ -101,6 +104,7 @@ const char *typename_str(Val v) { case TY_OBJ: switch (AS_OBJ(v)->oty) { case OTY_STRING: return "String"; + case OTY_FUNC: return "Func"; } break; } -- cgit v1.2.3