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 /error.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 'error.c')
-rw-r--r-- | error.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -871,9 +871,7 @@ exc_cause(VALUE exc) static VALUE try_convert_to_exception(VALUE obj) { - ID id_exception; - CONST_ID(id_exception, "exception"); - return rb_check_funcall(obj, id_exception, 0, 0); + return rb_check_funcall(obj, idException, 0, 0); } /* @@ -889,10 +887,9 @@ static VALUE exc_equal(VALUE exc, VALUE obj) { VALUE mesg, backtrace; - ID id_mesg; + const ID id_mesg = idMesg; if (exc == obj) return Qtrue; - CONST_ID(id_mesg, "mesg"); if (rb_obj_class(exc) != rb_obj_class(obj)) { int status = 0; |