diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 08:33:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 08:33:35 +0000 |
commit | c01aaf60a5ae218a2a2b4de0788553a97519190c (patch) | |
tree | 1140490c3ff862b1984856d99760de8306c84985 /eval.c | |
parent | 30a5ce7345d314541d2f2013dd3a771c16feee26 (diff) | |
download | ruby-c01aaf60a5ae218a2a2b4de0788553a97519190c.tar.gz |
id.def: move IDs for exception
* defs/id.def: add :mesg and :exception and move from other
sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -688,7 +688,6 @@ static VALUE make_exception(int argc, const VALUE *argv, int isstr) { VALUE mesg, exc; - ID exception; int n; mesg = Qnil; @@ -715,8 +714,7 @@ make_exception(int argc, const VALUE *argv, int isstr) n = 1; exception_call: if (sysstack_error_p(exc)) return exc; - CONST_ID(exception, "exception"); - mesg = rb_check_funcall(exc, exception, n, argv+1); + mesg = rb_check_funcall(exc, idException, n, argv+1); if (mesg == Qundef) { rb_raise(rb_eTypeError, "exception class/object expected"); } |