diff options
author | HParker <[email protected]> | 2023-02-17 08:15:03 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2023-03-09 15:34:49 -0800 |
commit | 69465df4242f3b2d8e55fbe18d7c45b47b40a626 (patch) | |
tree | 57aad5e76cfff0615df51443ede9b010d1c4f2f4 /internal/class.h | |
parent | 65a95b82593683ba2e566fe1d14b086b80874c92 (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7349
Diffstat (limited to 'internal/class.h')
-rw-r--r-- | internal/class.h | 1 |
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) |