Ignore:
Timestamp:
Apr 29, 2017, 4:33:37 PM (7 years ago)
Author:
coas-nagasima
Message:

ファイルを追加、更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-1.2.0/src/state.c

    r270 r279  
    9797mrb_open(void)
    9898{
    99   mrb_state *mrb = mrb_open_allocf(mrb_default_allocf, NULL);
     99  mrb_state *mrb = mrb_open_allocf(mrb_default_allocf, NULL, FALSE);
    100100
    101101  return mrb;
     
    103103
    104104MRB_API mrb_state*
    105 mrb_open_allocf(mrb_allocf f, void *ud)
     105mrb_open_allocf(mrb_allocf f, void *ud, mrb_bool disable_gems)
    106106{
    107107  mrb_state *mrb = mrb_open_core(f, ud);
     
    111111  }
    112112
    113 #ifndef DISABLE_GEMS
    114   mrb_init_mrbgems(mrb);
    115   mrb_gc_arena_restore(mrb, 0);
    116 #endif
     113  if (!disable_gems) {
     114    mrb_init_mrbgems(mrb);
     115    mrb_gc_arena_restore(mrb, 0);
     116  }
    117117  return mrb;
    118118}
Note: See TracChangeset for help on using the changeset viewer.