aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 08:33:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 08:33:35 +0000
commitc01aaf60a5ae218a2a2b4de0788553a97519190c (patch)
tree1140490c3ff862b1984856d99760de8306c84985 /error.c
parent30a5ce7345d314541d2f2013dd3a771c16feee26 (diff)
downloadruby-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.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/error.c b/error.c
index 1e7dac53b6..7aa939f829 100644
--- a/error.c
+++ b/error.c
@@ -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;