diff options
Diffstat (limited to 'val.c')
-rw-r--r-- | val.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |