mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Close on exception too.
This commit is contained in:
@@ -101,6 +101,7 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
|
||||
end
|
||||
f.puts %Q[ if (mrb2->exc) {]
|
||||
f.puts %Q[ mrb_print_error(mrb2);]
|
||||
f.puts %Q[ mrb_close(mrb2);]
|
||||
f.puts %Q[ exit(EXIT_FAILURE);]
|
||||
f.puts %Q[ }]
|
||||
f.puts %Q[ mrb_const_set(mrb2, mrb_obj_value(mrb2->object_class), mrb_intern_lit(mrb2, "GEMNAME"), mrb_str_new(mrb2, "#{g.name}", #{g.name.length}));]
|
||||
|
||||
Reference in New Issue
Block a user