diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-22 11:51:59 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-22 11:51:59 +0100 |
commit | ba0eb2042cefce45efa5c1ad294f05d0122815ee (patch) | |
tree | 1bd6f747538b315e5091eea6a773b7401db16929 /val.c | |
parent | 24f5d4f4456fce3a9e8cd5a7c1225facd60ae979 (diff) |
fix circular dependencies
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; } |