Ruby: include/ruby/internal/intern/cont.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

cont.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_CONT_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_CONT_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25#include "ruby/internal/iterator.h"
26
27 RBIMPL_SYMBOL_EXPORT_BEGIN()
28
29/* cont.c */
30 VALUE rb_fiber_new(rb_block_call_func_t, VALUE);
31 VALUE rb_fiber_new_kw(rb_block_call_func_t, VALUE, int kw_splat);
32 VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv);
33 VALUE rb_fiber_resume_kw(VALUE fib, int argc, const VALUE *argv, int kw_splat);
34 VALUE rb_fiber_yield(int argc, const VALUE *argv);
35 VALUE rb_fiber_yield_kw(int argc, const VALUE *argv, int kw_splat);
36 VALUE rb_fiber_current(void);
37 VALUE rb_fiber_alive_p(VALUE);
38
39 RBIMPL_SYMBOL_EXPORT_END()
40
41#endif /* RBIMPL_INTERN_CONT_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
rb_fiber_resume_kw
VALUE rb_fiber_resume_kw(VALUE fib, int argc, const VALUE *argv, int kw_splat)
Definition: cont.c:2391
rb_fiber_new_kw
VALUE rb_fiber_new_kw(rb_block_call_func_t, VALUE, int kw_splat)
rb_fiber_alive_p
VALUE rb_fiber_alive_p(VALUE)
Definition: cont.c:2455
rb_fiber_current
VALUE rb_fiber_current(void)
Definition: cont.c:2182
rb_fiber_yield_kw
VALUE rb_fiber_yield_kw(int argc, const VALUE *argv, int kw_splat)
Definition: cont.c:2426
rb_fiber_new
VALUE rb_fiber_new(rb_block_call_func_t, VALUE)
Definition: cont.c:1902
rb_fiber_yield
VALUE rb_fiber_yield(int argc, const VALUE *argv)
Definition: cont.c:2432
rb_fiber_resume
VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv)
Definition: cont.c:2420
iterator.h
Block related APIs.
rb_block_call_func_t
rb_block_call_func * rb_block_call_func_t
Definition: iterator.h:34
argc
int argc
Definition: ruby.c:240
argv
char ** argv
Definition: ruby.c:241
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38