diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-07 16:58:50 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-07 16:58:50 +0900 |
| commit | f1ed1436240a2d0d3d45a7061ade26cdc25be352 (patch) | |
| tree | fc4b9e25b6e2cba27e982bab89bfbb2b3553d499 /mrblib/init_mrblib.c | |
| parent | f4867743524c37c14acdfb93caa874818cc6c101 (diff) | |
| download | mruby-f1ed1436240a2d0d3d45a7061ade26cdc25be352.tar.gz mruby-f1ed1436240a2d0d3d45a7061ade26cdc25be352.zip | |
mange arena_idx smarter for smaller ARENA_SIZE; now default to 100 from 1024
Diffstat (limited to 'mrblib/init_mrblib.c')
| -rw-r--r-- | mrblib/init_mrblib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mrblib/init_mrblib.c b/mrblib/init_mrblib.c index 72355e3eb..eb7156bf1 100644 --- a/mrblib/init_mrblib.c +++ b/mrblib/init_mrblib.c @@ -9,8 +9,6 @@ extern const char mrblib_irep[]; void mrb_init_mrblib(mrb_state *mrb) { - int n = mrb_read_irep(mrb, mrblib_irep); - - mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb)); + mrb_load_irep(mrb, mrblib_irep); } |
