summaryrefslogtreecommitdiff
path: root/val.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-22 11:51:59 +0100
committerubq323 <ubq323@ubq323.website>2024-06-22 11:51:59 +0100
commitba0eb2042cefce45efa5c1ad294f05d0122815ee (patch)
tree1bd6f747538b315e5091eea6a773b7401db16929 /val.c
parent24f5d4f4456fce3a9e8cd5a7c1225facd60ae979 (diff)
fix circular dependencies
Diffstat (limited to 'val.c')
-rw-r--r--val.c4
1 files changed, 4 insertions, 0 deletions
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;
}