diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-06 07:00:19 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-06 07:00:19 +0000 |
commit | 9537e8ffe5b7a0e6a2a791e1886509dc98b6d3f9 (patch) | |
tree | 4dc30bb86d4131f70c137831c116771783e5fc5b /internal.h | |
parent | 3dd941b234ab6df52f72bb32e401f6669ef972c7 (diff) | |
download | ruby-9537e8ffe5b7a0e6a2a791e1886509dc98b6d3f9.tar.gz |
* internal.h, class.c, eval.c, insns.def: find the appropriate
receiver for super called in instance_eval. If such a receiver is
not found, raise NoMethodError. [ruby-dev:39772] [Bug #2402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 08291afdf2..8396b0aad9 100644 --- a/internal.h +++ b/internal.h @@ -28,6 +28,7 @@ struct rb_classext_struct { struct st_table *iv_tbl; struct st_table *const_tbl; VALUE origin; + VALUE refined_class; }; #undef RCLASS_SUPER @@ -38,6 +39,7 @@ struct rb_classext_struct { #define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl) #define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl) #define RCLASS_ORIGIN(c) (RCLASS_EXT(c)->origin) +#define RCLASS_REFINED_CLASS(c) (RCLASS_EXT(c)->refined_class) struct vtm; /* defined by timev.h */ |