diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-25 01:37:52 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-25 01:37:52 +0100 |
commit | 6aef97b52844b8868e5ada38ce0936619c1077a7 (patch) | |
tree | ba6db4ccf6c3076ada8e8ebf2a1ee94e8ac362dc /vm.c | |
parent | f76f5a8c244ac6d04e4d89778a6d8c2c2040cdc9 (diff) |
more function tests
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -100,6 +100,9 @@ int runvm(State *S) { } Val v = ht_get(S, &S->globals, AS_STRING(varname)); PUSH(v); + if (IS_NIL(v)) { + printf("warning: nil global read %s\n", AS_CSTRING(varname)); + } break; } case OP_SETGLOBAL: { |