show irep names in debug print

This commit is contained in:
Yuichi Nishiwaki 2014-03-28 12:29:00 +09:00
parent 24d6540d56
commit a304feaa28
1 changed files with 2 additions and 1 deletions

View File

@ -686,7 +686,8 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value argv)
}
puts(")");
if (! pic_proc_func_p(proc)) {
printf(" irep = ");
printf(" irep = %p\n", proc->u.irep);
printf(" name = %s\n", pic_symbol_name(pic, proc->u.irep->name));
pic_dump_irep(proc->u.irep);
}
else {