fix a bug that pic_apply faults when cfunc proc is given in DEBUG mode
This commit is contained in:
parent
125189e25e
commit
89eceec7f8
5
src/vm.c
5
src/vm.c
|
@ -282,8 +282,13 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value argv)
|
||||||
printf(" argv = ");
|
printf(" argv = ");
|
||||||
pic_debug(pic, argv);
|
pic_debug(pic, argv);
|
||||||
puts("");
|
puts("");
|
||||||
|
if (! proc->cfunc_p) {
|
||||||
printf(" irep = ");
|
printf(" irep = ");
|
||||||
print_irep(pic, proc->u.irep);
|
print_irep(pic, proc->u.irep);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf(" cfunc = %p\n", proc->u.cfunc);
|
||||||
|
}
|
||||||
puts("\nLet's go!");
|
puts("\nLet's go!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue