Ruby: internal/enumerator.h Source File

Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)

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