summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-12-12 09:10:04 +0100
committerJean Boussier <jean.boussier@gmail.com>2025-12-12 10:08:05 +0100
commitff831eb0572b2d8f794acca478ea77c7bfefbc61 (patch)
tree68a0989c9d3b9920348d424a5f6b57060a9c0212 /internal
parent7e7a1db579dad504a26e42d5f3efa5b2968389af (diff)
thead_sync.c: directly pass the execution context to yield
Saves one more call to GET_EC()
Diffstat (limited to 'internal')
-rw-r--r--internal/vm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/vm.h b/internal/vm.h
index 7fae590d19..09dfaf182e 100644
--- a/internal/vm.h
+++ b/internal/vm.h
@@ -69,6 +69,7 @@ const char *rb_type_str(enum ruby_value_type type);
VALUE rb_check_funcall_default(VALUE, ID, int, const VALUE *, VALUE);
VALUE rb_check_funcall_basic_kw(VALUE, ID, VALUE, int, const VALUE*, int);
VALUE rb_yield_1(VALUE val);
+VALUE rb_ec_yield(struct rb_execution_context_struct *ec, VALUE val);
VALUE rb_yield_force_blockarg(VALUE values);
VALUE rb_lambda_call(VALUE obj, ID mid, int argc, const VALUE *argv,
rb_block_call_func_t bl_proc, int min_argc, int max_argc,