diff options
author | John Hawthorn <[email protected]> | 2022-06-14 23:52:20 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2022-06-15 16:07:29 -0700 |
commit | 17d260a87fd0cb4433d29c21f3a69ea963c64056 (patch) | |
tree | 1daf9866025a2ebad7ec9c2d05c1ff0ff8264e11 /thread.c | |
parent | 5310147bb826424059f258b76b37bebdc0abbc63 (diff) |
Restore rb_exec_recursive_outer
This was a public method, so we should probably keep it.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6027
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |