summaryrefslogtreecommitdiff
path: root/internal/class.h
diff options
context:
space:
mode:
-rw-r--r--internal/class.h12
1 files changed, 9 insertions, 3 deletions
@@ -257,7 +257,8 @@ static inline void RCLASS_SET_FIELDS_HASH(VALUE obj, const st_table *table);
static inline void RCLASS_WRITE_FIELDS_HASH(VALUE obj, const st_table *table);
static inline uint32_t RCLASS_FIELDS_COUNT(VALUE obj);
static inline void RCLASS_SET_M_TBL(VALUE klass, struct rb_id_table *table);
-static inline void RCLASS_WRITE_M_TBL(VALUE klass, struct rb_id_table *table);
static inline void RCLASS_SET_CONST_TBL(VALUE klass, struct rb_id_table *table, bool shared);
static inline void RCLASS_WRITE_CONST_TBL(VALUE klass, struct rb_id_table *table, bool shared);
static inline void RCLASS_WRITE_CALLABLE_M_TBL(VALUE klass, struct rb_id_table *table);
@@ -568,10 +569,15 @@ RCLASS_SET_M_TBL(VALUE klass, struct rb_id_table *table)
RCLASSEXT_M_TBL(RCLASS_EXT(klass)) = table;
}
static inline void
-RCLASS_WRITE_M_TBL(VALUE klass, struct rb_id_table *table)
{
- RUBY_ASSERT(!RB_OBJ_PROMOTED(klass));
RCLASSEXT_M_TBL(RCLASS_EXT_WRITABLE(klass)) = table;
}