show debug print when a library is reopened

This commit is contained in:
Yuichi Nishiwaki 2014-01-09 00:40:13 +09:00
parent d0713456ef
commit 76f8916dca
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ pic_make_library(pic_state *pic, pic_value name)
struct pic_senv *senv; struct pic_senv *senv;
if ((lib = pic_find_library(pic, name)) != NULL) { if ((lib = pic_find_library(pic, name)) != NULL) {
#if DEBUG
printf("* reopen library: ");
pic_debug(pic, name);
puts("");
#endif
return lib; return lib;
} }