default library is picrin.user

This commit is contained in:
Yuichi Nishiwaki 2016-03-02 04:34:33 +09:00
parent ca4fb058d1
commit 3feee82d8b
1 changed files with 4 additions and 3 deletions

View File

@ -292,15 +292,16 @@ pic_open(pic_allocf allocf, void *userdata)
pic->cp->depth = 0;
pic->cp->in = pic->cp->out = NULL;
/* standard libraries */
pic_make_library(pic, "picrin.user");
pic_in_library(pic, "picrin.user");
/* user land */
pic_deflibrary(pic, "picrin.user");
/* turn on GC */
pic->gc_enable = true;
pic_init_core(pic);
pic_in_library(pic, "picrin.user");
pic_leave(pic, 0); /* empty arena */
return pic;