abort() if mrb->jmp is empty

This commit is contained in:
Yukihiro Matsumoto
2012-08-22 11:17:37 +09:00
parent 72bc9c8e46
commit d1f2841660
+3
View File
@@ -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);
}