[前][次][番号順一覧][スレッド一覧]

ruby-changes:67980

From: S-H-GAMELINKS <ko1@a...>
Date: Tue, 14 Sep 2021 14:58:40 +0900 (JST)
Subject: [ruby-changes:67980] 692dfc5088 (master): Refactor vm_yield function

https://git.ruby-lang.org/ruby.git/commit/?id=692dfc5088

From 692dfc50888b86084181d520297a49faa4bd0809 Mon Sep 17 00:00:00 2001
From: S-H-GAMELINKS <gamelinks007@g...>
Date: Tue, 14 Sep 2021 09:19:30 +0900
Subject: Refactor vm_yield function

---
 vm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vm.c b/vm.c
index ba5ad66..1a21638 100644
--- a/vm.c
+++ b/vm.c
@@ -1396,9 +1396,7 @@ vm_yield_with_cref(rb_execution_context_t *ec, int argc, const VALUE *argv, int https://github.com/ruby/ruby/blob/trunk/vm.c#L1396
 static VALUE
 vm_yield(rb_execution_context_t *ec, int argc, const VALUE *argv, int kw_splat)
 {
-    return invoke_block_from_c_bh(ec, check_block_handler(ec),
-                                  argc, argv, kw_splat, VM_BLOCK_HANDLER_NONE,
-				  NULL, FALSE, FALSE);
+    return vm_yield_with_cref(ec, argc, argv, kw_splat, NULL, FALSE);
 }
 
 static VALUE
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]