summaryrefslogtreecommitdiff
path: root/yjit/bindgen/src/main.rs
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-09 08:58:07 +0200
committerJean Boussier <[email protected]>2025-05-09 10:22:51 +0200
commitea772508470fbde15154c816b36fdf70f4c8735a ()
tree8a58ba2e84b261fefa6b7138e22a3aca017ab512 /yjit/bindgen/src/main.rs
parent0b81359b3f0df5b663b21562660877f8ef303e00 (diff)
Rename `RB_OBJ_SHAPE` -> `rb_obj_shape`
As well as `RB_OBJ_SHAPE_ID` -> `rb_obj_shape_id` and `RSHAPE` is now a simple alias for `rb_shape_lookup`. I tried to turn all these into `static inline` but I'm having trouble with `RUBY_EXTERN rb_shape_tree_t *rb_shape_tree_ptr;` not being exposed as I'd expect.
Notes: Merged: https://.com/ruby/ruby/pull/13283
-rw-r--r--yjit/bindgen/src/main.rs4
1 files changed, 2 insertions, 2 deletions
@@ -94,8 +94,8 @@ fn main() {
.allowlist_function("rb_bug")
// From shape.h
- .allowlist_function("RB_OBJ_SHAPE_ID")
- .allowlist_function("RSHAPE")
.allowlist_function("rb_shape_id_offset")
.allowlist_function("rb_shape_get_iv_index")
.allowlist_function("rb_shape_transition_add_ivar_no_warnings")