vm.c (ci_env_set): inline ci_env_set()

Along with making preparing mrb_vm_ci_env_clar() as a replacement of
mrb_vm_ci_env_set(mrb, NULL).
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-23 17:16:10 +09:00
parent 2c046eb512
commit 1ab3da6f08
3 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ module MRuby
f.puts %Q[ exit(EXIT_FAILURE);]
f.puts %Q[ }]
f.puts %Q[ struct REnv *e = mrb_vm_ci_env(mrb->c->cibase);]
f.puts %Q[ mrb_vm_ci_env_set(mrb->c->cibase, NULL);]
f.puts %Q[ mrb_vm_ci_env_clear(mrb->c->cibase);]
f.puts %Q[ mrb_env_unshare(mrb, e, FALSE);]
end
f.puts %Q[ mrb_gc_arena_restore(mrb, ai);]