diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-12-16 09:44:01 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-12-16 14:55:59 +0900 |
commit | d2f04d332f2ff04f25202ed38e23de526a9aea46 (patch) | |
tree | 905bd8eeda8249a8b1338416703d1254555a5581 /eval.c | |
parent | 1e80a208cc44cbbdd4e49d6146eea29cde5cd42a (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |