Changeset 279 for EcnlProtoTool/trunk/mruby-1.2.0/src/state.c
- Timestamp:
- Apr 29, 2017, 4:33:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-1.2.0/src/state.c
r270 r279 97 97 mrb_open(void) 98 98 { 99 mrb_state *mrb = mrb_open_allocf(mrb_default_allocf, NULL );99 mrb_state *mrb = mrb_open_allocf(mrb_default_allocf, NULL, FALSE); 100 100 101 101 return mrb; … … 103 103 104 104 MRB_API mrb_state* 105 mrb_open_allocf(mrb_allocf f, void *ud )105 mrb_open_allocf(mrb_allocf f, void *ud, mrb_bool disable_gems) 106 106 { 107 107 mrb_state *mrb = mrb_open_core(f, ud); … … 111 111 } 112 112 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 } 117 117 return mrb; 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.