diff options
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: { |