Ruby  3.1.4p223 (2023-03-30 revision HEAD)
range.h
Go to the documentation of this file.
1 #ifndef RBIMPL_INTERN_RANGE_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_INTERN_RANGE_H
25 #include "ruby/internal/value.h"
26 
28 
29 /* range.c */
30 
31 
41 VALUE rb_range_new(VALUE beg, VALUE end, int excl);
42 
69 VALUE rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err);
70 
85 int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
86 
88 
89 #endif /* RBIMPL_INTERN_RANGE_H */
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:106
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:97
int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp)
Deconstructs a range into its components.
Definition: range.c:1490
VALUE rb_range_new(VALUE beg, VALUE end, int excl)
Creates a new Range.
Definition: range.c:67
VALUE rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err)
Deconstructs a numerical range.
Definition: range.c:1578
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition: nonnull.h:27
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40