mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
abort() if mrb->jmp is empty
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user