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