diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-05-23 15:55:38 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-05-23 17:33:17 +0200 |
| commit | 52da5f8bbc705e75d89403df281fcf95d30cbe15 (patch) | |
| tree | 94fe922559bbb29c8bff960f9f800e8af5247590 /shape.h | |
| parent | 746d7fef9276c0e018cae24642a87ed486f8e212 (diff) | |
Refactor `rb_shape_transition_remove_ivar`
Move the fields management logic in `rb_ivar_delete`, and keep
shape managment logic in `rb_shape_transition_remove_ivar`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13426
Diffstat (limited to 'shape.h')
| -rw-r--r-- | shape.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ bool rb_shape_id_too_complex_p(shape_id_t shape_id); void rb_shape_set_shape(VALUE obj, rb_shape_t *shape); shape_id_t rb_shape_transition_frozen(VALUE obj); shape_id_t rb_shape_transition_complex(VALUE obj); -bool rb_shape_transition_remove_ivar(VALUE obj, ID id, VALUE *removed); +shape_id_t rb_shape_transition_remove_ivar(VALUE obj, ID id, shape_id_t *removed_shape_id); shape_id_t rb_shape_transition_add_ivar(VALUE obj, ID id); shape_id_t rb_shape_transition_add_ivar_no_warnings(VALUE obj, ID id); shape_id_t rb_shape_transition_object_id(VALUE obj); |
