summaryrefslogtreecommitdiff
path: root/eval_error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-23 07:05:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-23 07:05:30 +0000
commit0d20fbe3bd654faf6be82a00ea140880a9d9481a (patch)
tree7a1d3af88f13eb9759458a0df01aaf0ccd23aa34 /eval_error.c
parent556515bf69a098c146b7856395a0e804e9159115 (diff)
eval.c: static IDs
* eval.c (ruby_static_id_signo, ruby_static_id_status): add static IDs, signo and status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval_error.c b/eval_error.c
index 405d738236..c32eff13f2 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -255,7 +255,7 @@ rb_print_inaccessible(VALUE klass, ID id, int scope)
static int
sysexit_status(VALUE err)
{
- VALUE st = rb_iv_get(err, "status");
+ VALUE st = rb_ivar_get(err, id_status);
return NUM2INT(st);
}
@@ -303,7 +303,7 @@ error_handle(int ex)
status = sysexit_status(errinfo);
}
else if (rb_obj_is_instance_of(errinfo, rb_eSignal) &&
- rb_iv_get(errinfo, "signo") != INT2FIX(SIGSEGV)) {
+ rb_ivar_get(errinfo, id_signo) != INT2FIX(SIGSEGV)) {
/* no message when exiting by signal */
}
else {