Add mrb_fiber_alive_p to C API.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-03-02 10:10:16 +09:00
parent a95b6d34aa
commit 10f28fc82d
2 changed files with 10 additions and 2 deletions
+7
View File
@@ -1225,6 +1225,13 @@ MRB_API mrb_value mrb_fiber_resume(mrb_state *mrb, mrb_value fib, mrb_int argc,
*/
MRB_API mrb_value mrb_fiber_yield(mrb_state *mrb, mrb_int argc, const mrb_value *argv);
/*
* Check if a Fiber is alive
*
* @mrbgem mruby-fiber
*/
MRB_API mrb_value mrb_fiber_alive_p(mrb_state *mrb, mrb_value fib);
/*
* FiberError reference
*