summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJemma Issroff <[email protected]>2022-11-10 11:36:24 -0500
committerPeter Zhu <[email protected]>2022-11-10 13:02:50 -0500
commit7ee1cacb84e6b19908ac0e692601447597d40605 ()
tree4c1a527fe9c71af4dc96a51436093cf699798a08 /shape.h
parent354791c248d7e21d5b70ded7c548af954491e247 (diff)
Extract `rb_shape_get_parent` helper
Extract an `rb_shape_get_parent` method instead of continually calling `rb_shape_get_shape_by_id(shape->parent_id)`
Notes: Merged: https://.com/ruby/ruby/pull/6708
-rw-r--r--shape.h1
1 files changed, 1 insertions, 0 deletions
@@ -133,6 +133,7 @@ bool rb_shape_root_shape_p(rb_shape_t* shape);
rb_shape_t * rb_shape_get_root_shape(void);
rb_shape_t* rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id);
MJIT_SYMBOL_EXPORT_BEGIN
rb_shape_t* rb_shape_get_shape_by_id(shape_id_t shape_id);