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

ruby-changes:66756

From: Samuel <ko1@a...>
Date: Tue, 13 Jul 2021 16:28:58 +0900 (JST)
Subject: [ruby-changes:66756] 9df712a0e2 (master): Expose `rb_obj_is_fiber`.

https://git.ruby-lang.org/ruby.git/commit/?id=9df712a0e2

From 9df712a0e2013018bf44be71404ffc17dce21744 Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@o...>
Date: Tue, 13 Jul 2021 18:46:32 +1200
Subject: Expose `rb_obj_is_fiber`.

---
 include/ruby/internal/intern/cont.h | 1 +
 internal/cont.h                     | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ruby/internal/intern/cont.h b/include/ruby/internal/intern/cont.h
index 54adb3d..cb651e6 100644
--- a/include/ruby/internal/intern/cont.h
+++ b/include/ruby/internal/intern/cont.h
@@ -30,6 +30,7 @@ RBIMPL_SYMBOL_EXPORT_BEGIN() https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/cont.h#L30
 VALUE rb_fiber_new(rb_block_call_func_t, VALUE);
 VALUE rb_fiber_current(void);
 VALUE rb_fiber_alive_p(VALUE);
+VALUE rb_obj_is_fiber(VALUE);
 
 VALUE rb_fiber_resume(VALUE fiber, int argc, const VALUE *argv);
 VALUE rb_fiber_resume_kw(VALUE fiber, int argc, const VALUE *argv, int kw_splat);
diff --git a/internal/cont.h b/internal/cont.h
index 9e49dd3..8be1950 100644
--- a/internal/cont.h
+++ b/internal/cont.h
@@ -15,7 +15,6 @@ struct rb_thread_struct;        /* in vm_core.h */ https://github.com/ruby/ruby/blob/trunk/internal/cont.h#L15
 struct rb_fiber_struct;         /* in cont.c */
 
 /* cont.c */
-VALUE rb_obj_is_fiber(VALUE);
 void rb_fiber_reset_root_local_storage(struct rb_thread_struct *);
 void ruby_register_rollback_func_for_ensure(VALUE (*ensure_func)(VALUE), VALUE (*rollback_func)(VALUE));
 void rb_fiber_init_mjit_cont(struct rb_fiber_struct *fiber);
-- 
cgit v1.1


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

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