diff options
author | Jean Boussier <[email protected]> | 2025-05-08 20:17:09 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-05-09 10:22:51 +0200 |
commit | 3f7c0af05191c6120db1617fef1d5be18151dfe6 (patch) | |
tree | 71e00eadbb496572bba83ffde26bd6895b07c463 /internal/class.h | |
parent | 677d075c2901198aad2f17b7d9f07af021c5e974 (diff) |
Rename `rb_shape_obj_too_complex` -> `rb_shape_obj_too_complex_p`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13283
Diffstat (limited to 'internal/class.h')
-rw-r--r-- | internal/class.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/class.h b/internal/class.h index 8e72eea12f..af7d20c527 100644 --- a/internal/class.h +++ b/internal/class.h @@ -117,7 +117,7 @@ static inline st_table * RCLASS_FIELDS_HASH(VALUE obj) { RUBY_ASSERT(RB_TYPE_P(obj, RUBY_T_CLASS) || RB_TYPE_P(obj, RUBY_T_MODULE)); - RUBY_ASSERT(rb_shape_obj_too_complex(obj)); + RUBY_ASSERT(rb_shape_obj_too_complex_p(obj)); return (st_table *)RCLASS_FIELDS(obj); } @@ -125,7 +125,7 @@ static inline void RCLASS_SET_FIELDS_HASH(VALUE obj, const st_table *tbl) { RUBY_ASSERT(RB_TYPE_P(obj, RUBY_T_CLASS) || RB_TYPE_P(obj, RUBY_T_MODULE)); - RUBY_ASSERT(rb_shape_obj_too_complex(obj)); + RUBY_ASSERT(rb_shape_obj_too_complex_p(obj)); RCLASS_FIELDS(obj) = (VALUE *)tbl; } @@ -133,7 +133,7 @@ static inline uint32_t RCLASS_FIELDS_COUNT(VALUE obj) { RUBY_ASSERT(RB_TYPE_P(obj, RUBY_T_CLASS) || RB_TYPE_P(obj, RUBY_T_MODULE)); - if (rb_shape_obj_too_complex(obj)) { + if (rb_shape_obj_too_complex_p(obj)) { uint32_t count; // "Too complex" classes could have their IV hash mutated in |