This is a supplement to make the printing of "parser objects should be
dead" messages more useful. Adding the source location of an undead
context def makes the problem far easier to identify.
scm_puts ("#<Context_def ", port);
scm_display (me->context_name_, port);
scm_puts ("#<Context_def ", port);
scm_display (me->context_name_, port);
+ scm_puts (" ", port);
+ string loc = me->origin ()->location_string ();
+ scm_puts (loc.c_str (), port);
scm_puts (">", port);
return 1;
}
scm_puts (">", port);
return 1;
}