diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-02 07:54:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-02 07:54:17 +0000 |
commit | 97982e823fd6772ce475c250676a73c03fbf3d94 (patch) | |
tree | 4560c76be107b254fd1cd6f96cfce3e9634faf1a /variable.c | |
parent | 149f8f17efbe4e4dfde350af7b1bf5b54cfb5c1a (diff) | |
download | ruby-97982e823fd6772ce475c250676a73c03fbf3d94.tar.gz |
id.def: predefined IDs
* defs/id.def: add more predefined IDs used in core.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/variable.c b/variable.c index f6bd70a211..1417de0ed3 100644 --- a/variable.c +++ b/variable.c @@ -18,6 +18,7 @@ #include "node.h" #include "constant.h" #include "internal.h" +#include "id.h" st_table *rb_global_tbl; st_table *rb_class_tbl; @@ -2300,7 +2301,7 @@ static VALUE cvar_front_klass(VALUE klass) { if (FL_TEST(klass, FL_SINGLETON)) { - VALUE obj = rb_iv_get(klass, "__attached__"); + VALUE obj = rb_ivar_get(klass, id__attached__); if (RB_TYPE_P(obj, T_MODULE) || RB_TYPE_P(obj, T_CLASS)) { return obj; } |