Commit a20384ce authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1141 from mattn/fix_exit

Fix exit
parents 93819c01 1541a61f
...@@ -355,7 +355,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val) ...@@ -355,7 +355,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val)
static void static void
scope_error(codegen_scope *s) scope_error(codegen_scope *s)
{ {
exit(1); exit(EXIT_FAILURE);
} }
static inline void static inline void
......
...@@ -18,7 +18,7 @@ mrb_init_mrbtest(mrb_state *mrb) ...@@ -18,7 +18,7 @@ mrb_init_mrbtest(mrb_state *mrb)
#endif #endif
if (mrb->exc) { if (mrb->exc) {
mrb_p(mrb, mrb_obj_value(mrb->exc)); mrb_p(mrb, mrb_obj_value(mrb->exc));
exit(0); exit(EXIT_FAILURE);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment