diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-05-27 13:20:58 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-05-27 15:34:02 +0200 |
| commit | a1f72d23a911d8a1f4c89fbaacee1d8e7b4e90d3 (patch) | |
| tree | 8e6015e79a7b4f98b99c14917c40acaa4ab518ec /shape.h | |
| parent | a80a5000ab9ac08b9b74cfee559bba5c349b1808 (diff) | |
Refactor `rb_shape_has_object_id`
Now takes a `shape_id_t` and the version that takes a `rb_shape_t *`
is private.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13450
Diffstat (limited to 'shape.h')
| -rw-r--r-- | shape.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -127,8 +127,7 @@ bool rb_shape_get_iv_index_with_hint(shape_id_t shape_id, ID id, attr_index_t *v RUBY_FUNC_EXPORTED bool rb_shape_obj_too_complex_p(VALUE obj); bool rb_shape_too_complex_p(rb_shape_t *shape); bool rb_shape_id_too_complex_p(shape_id_t shape_id); -bool rb_shape_has_object_id(rb_shape_t *shape); -bool rb_shape_id_has_object_id(shape_id_t shape_id); +bool rb_shape_has_object_id(shape_id_t shape_id); shape_id_t rb_shape_transition_frozen(VALUE obj); shape_id_t rb_shape_transition_complex(VALUE obj); @@ -237,7 +236,7 @@ bool rb_shape_set_shape_id(VALUE obj, shape_id_t shape_id); static inline bool rb_shape_obj_has_id(VALUE obj) { - return rb_shape_id_has_object_id(RBASIC_SHAPE_ID(obj)); + return rb_shape_has_object_id(RBASIC_SHAPE_ID(obj)); } // For ext/objspace |
