update benz (funcall API change)

This commit is contained in:
Yuichi Nishiwaki 2014-09-16 16:20:03 +09:00
parent ec0f9a952b
commit 8d7f63d71e
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 678d2484ec989b082d0db2dffda5d0a391cecc50
Subproject commit db5a4e367b86d76c6be993ed4ffe611385465d5d

View File

@ -56,15 +56,17 @@ int
main(int argc, char *argv[], char **envp)
{
pic_state *pic;
struct pic_lib *PICRIN_MAIN;
int status = 0;
pic = pic_open(argc, argv, envp);
pic_init_picrin(pic);
PICRIN_MAIN = pic_find_library(pic, pic_read_cstr(pic, "(picrin main)"));
pic_try {
pic_import(pic, pic_read_cstr(pic, "(picrin main)"));
pic_funcall(pic, "main", pic_nil_value());
pic_funcall(pic, PICRIN_MAIN, "main", pic_nil_value());
}
pic_catch {
pic_print_backtrace(pic, pic->err);