Commit d1f28416 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

abort() if mrb->jmp is empty

parent 72bc9c8e
......@@ -164,6 +164,9 @@ void
mrb_exc_raise(mrb_state *mrb, mrb_value exc)
{
mrb->exc = (struct RObject*)mrb_object(exc);
if (!mrb->jmp) {
abort();
}
longjmp(*(jmp_buf*)mrb->jmp, 1);
}
......
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