debug-print when unbound symbol is found
This commit is contained in:
+4
-1
@@ -201,7 +201,10 @@ codegen(codegen_state *state, pic_value obj, bool tailpos)
|
||||
name = pic_symbol_name(pic, pic_sym(obj));
|
||||
s = scope_lookup(state, name, &depth, &idx);
|
||||
if (! s) {
|
||||
pic_error(pic, "unbound variable");
|
||||
#if DEBUG
|
||||
printf("%s\n", name);
|
||||
#endif
|
||||
pic_error(pic, "symbol: unbound variable");
|
||||
}
|
||||
|
||||
switch (depth) {
|
||||
|
||||
Reference in New Issue
Block a user