summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2022-06-14 23:52:20 -0700
committerJohn Hawthorn <john@hawthorn.email>2022-06-15 16:07:29 -0700
commit17d260a87fd0cb4433d29c21f3a69ea963c64056 (patch)
tree1daf9866025a2ebad7ec9c2d05c1ff0ff8264e11 /thread.c
parent5310147bb826424059f258b76b37bebdc0abbc63 (diff)
downloadruby-17d260a87fd0cb4433d29c21f3a69ea963c64056.tar.gz
Restore rb_exec_recursive_outer
This was a public method, so we should probably keep it.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 0b5cbb8197..6c22867bab 100644
--- a/thread.c
+++ b/thread.c
@@ -5173,6 +5173,12 @@ rb_exec_recursive_paired(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE pai
*/
VALUE
+rb_exec_recursive_outer(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE arg)
+{
+ return exec_recursive(func, obj, 0, arg, 1, rb_frame_last_func());
+}
+
+VALUE
rb_exec_recursive_outer_mid(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE arg, ID mid)
{
return exec_recursive(func, obj, 0, arg, 1, mid);