summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-16 09:44:01 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-16 14:55:59 +0900
commitd2f04d332f2ff04f25202ed38e23de526a9aea46 (patch)
tree905bd8eeda8249a8b1338416703d1254555a5581 /eval.c
parent1e80a208cc44cbbdd4e49d6146eea29cde5cd42a (diff)
Kernel#abort without arguments should print error info
[Bug #16424]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2754
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index 7bcb544..f2fde81 100644
--- a/eval.c
+++ b/eval.c
@@ -477,7 +477,7 @@ rb_class_modify_check(VALUE klass)
NORETURN(static void rb_longjmp(rb_execution_context_t *, int, volatile VALUE, VALUE));
static VALUE get_errinfo(void);
-static VALUE get_ec_errinfo(const rb_execution_context_t *ec);
+#define get_ec_errinfo(ec) rb_ec_get_errinfo(ec)
static VALUE
exc_setup_cause(VALUE exc, VALUE cause)
@@ -1847,8 +1847,8 @@ errinfo_place(const rb_execution_context_t *ec)
return 0;
}
-static VALUE
-get_ec_errinfo(const rb_execution_context_t *ec)
+VALUE
+rb_ec_get_errinfo(const rb_execution_context_t *ec)
{
const VALUE *ptr = errinfo_place(ec);
if (ptr) {