refactor out longjmp() to a function

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-07-25 14:54:17 +09:00
parent 8a298605e6
commit 63e5a3cfb1
4 changed files with 17 additions and 9 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
*/
#include <errno.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -219,7 +218,7 @@ mrb_exc_raise(mrb_state *mrb, mrb_value exc)
mrb_p(mrb, exc);
abort();
}
longjmp(*(jmp_buf*)mrb->jmp, 1);
mrb_longjmp(mrb);
}
void