Ruby: internal/enumerator.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

enumerator.h
1#ifndef INTERNAL_ENUMERATOR_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_ENUMERATOR_H
11#include "ruby/ruby.h" /* for VALUE */
12#include "ruby/intern.h" /* for rb_enumerator_size_func */
13
14RUBY_SYMBOL_EXPORT_BEGIN
15/* enumerator.c (export) */
16 VALUE rb_arith_seq_new(VALUE obj, VALUE meth, int argc, VALUE const *argv,
17 rb_enumerator_size_func *size_fn,
18 VALUE beg, VALUE end, VALUE step, int excl);
19RUBY_SYMBOL_EXPORT_END
20
21#endif /* INTERNAL_ENUMERATOR_H */
rb_enumerator_size_func
VALUE rb_enumerator_size_func(VALUE recv, VALUE argv, VALUE eobj)
This is the type of functions that rb_enumeratorize_with_size() expects.
Definition enumerator.h:45
intern.h
ruby.h
VALUE
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40