invoke pic_panic when evalating pic_boot failed
This commit is contained in:
parent
e5f7eda432
commit
f4b54c85ea
|
@ -156,7 +156,13 @@ pic_init_core(pic_state *pic)
|
||||||
pic_init_attr(pic); DONE;
|
pic_init_attr(pic); DONE;
|
||||||
pic_init_reg(pic); DONE;
|
pic_init_reg(pic); DONE;
|
||||||
|
|
||||||
pic_load_cstr(pic, &pic_boot[0][0]);
|
pic_try {
|
||||||
|
pic_load_cstr(pic, &pic_boot[0][0]);
|
||||||
|
}
|
||||||
|
pic_catch {
|
||||||
|
pic_print_backtrace(pic, xstdout);
|
||||||
|
pic_panic(pic, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pic_import(pic, pic->PICRIN_BASE);
|
pic_import(pic, pic->PICRIN_BASE);
|
||||||
|
|
Loading…
Reference in New Issue