summaryrefslogtreecommitdiff
path: root/val.c
diff options
context:
space:
mode:
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;
}