From 97982e823fd6772ce475c250676a73c03fbf3d94 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 2 May 2013 07:54:17 +0000 Subject: 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 --- variable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'variable.c') 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; } -- cgit v1.2.3