aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 0f2f165cc8..e907d7ee88 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -258,6 +258,9 @@ sysexit_status(VALUE err)
return NUM2INT(st);
}
+#define unknown_longjmp_status(status) \
+ rb_bug("Unknown longjmp status %d", status)
+
static int
error_handle(int ex)
{
@@ -314,7 +317,7 @@ error_handle(int ex)
error_print();
break;
default:
- rb_bug("Unknown longjmp status %d", ex);
+ unknown_longjmp_status(ex);
break;
}
rb_threadptr_reset_raised(th);