summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorHParker <HParker@github.com>2023-02-17 08:15:03 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2023-03-09 15:34:49 -0800
commit69465df4242f3b2d8e55fbe18d7c45b47b40a626 (patch)
tree57aad5e76cfff0615df51443ede9b010d1c4f2f4 /internal
parent65a95b82593683ba2e566fe1d14b086b80874c92 (diff)
downloadruby-69465df4242f3b2d8e55fbe18d7c45b47b40a626.tar.gz
Allow classes and modules to become too complex
This makes the behavior of classes and modules when there are too many instance variables match the behavior of objects with too many instance variables.
Diffstat (limited to 'internal')
-rw-r--r--internal/class.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/class.h b/internal/class.h
index 9e47a339c1..e12fa5c355 100644
--- a/internal/class.h
+++ b/internal/class.h
@@ -96,6 +96,7 @@ STATIC_ASSERT(sizeof_rb_classext_t, sizeof(struct RClass) + sizeof(rb_classext_t
#define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl)
#define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
#define RCLASS_IVPTR(c) (RCLASS_EXT(c)->iv_ptr)
+#define RCLASS_TABLE_IVPTR(c) (struct rb_id_table *)(RCLASS_EXT(c)->iv_ptr)
#define RCLASS_CALLABLE_M_TBL(c) (RCLASS_EXT(c)->callable_m_tbl)
#define RCLASS_CC_TBL(c) (RCLASS_EXT(c)->cc_tbl)
#define RCLASS_CVC_TBL(c) (RCLASS_EXT(c)->cvc_tbl)