diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-25 14:54:17 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-25 14:54:17 +0900 |
| commit | 63e5a3cfb10e238eaab2a77bcc83acd0d41e60fa (patch) | |
| tree | cd38afab99c11dbfc2114306c6b779c114a1ac39 /src/error.c | |
| parent | 8a298605e6667bfc15a1bef49b481f35829c0717 (diff) | |
| download | mruby-63e5a3cfb10e238eaab2a77bcc83acd0d41e60fa.tar.gz mruby-63e5a3cfb10e238eaab2a77bcc83acd0d41e60fa.zip | |
refactor out longjmp() to a function
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c index 9f3a86cc8..df4bbc866 100644 --- a/src/error.c +++ b/src/error.c @@ -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 |
