|
Ruby 4.1.0dev (2026-11-18 revision 9de06831e37534f8a163e598cc0c6903c7687430)
|
#include "ruby/internal/static_assert.h"#include "ruby/backward/2/long_long.h"#include "ruby/backward/2/limits.h"

Go to the source code of this file.
Macros | |
| #define | SIZEOF_VALUE SIZEOF_UINTPTR_T |
| Identical to sizeof(VALUE), except it is a macro that can also be used inside of preprocessor directives such as #if. | |
| #define | RBIMPL_VALUE_NULL UINTPTR_C(0) |
| A compile-time constant of type VALUE whose value is 0. | |
| #define | RBIMPL_VALUE_ONE UINTPTR_C(1) |
| A compile-time constant of type VALUE whose value is 1. | |
| #define | RBIMPL_VALUE_FULL UINTPTR_MAX |
| Maximum possible value that a VALUE can take. | |
| #define | SIZEOF_RB_LEN_T SIZEOF_LONG |
| Size of rb_len_t, in bytes. | |
| #define | PRI_LEN_PREFIX "l" |
| Printf prefix for rb_len_t. | |
| #define | RB_LEN_MAX LONG_MAX |
| Maximum possible value that a rb_len_t can take. | |
| #define | RB_LEN_MIN LONG_MIN |
| Minimum possible value that a rb_len_t can take. | |
| #define | RB_ULEN_MAX ULONG_MAX |
| Maximum possible value that a rb_ulen_t can take. | |
| #define | HAVE_RB_LEN_T 1 |
| Indicates that rb_len_t and rb_ulen_t are available. | |
Typedefs | |
| typedef uintptr_t | VALUE |
| Type that represents a Ruby object. | |
| typedef uintptr_t | ID |
| Type that represents a Ruby identifier such as a variable name. | |
| typedef intptr_t | SIGNED_VALUE |
| A signed integer type that has the same width with VALUE. | |
| typedef long | rb_len_t |
| A signed integer type for lengths and indices of objects such as String and Array. | |
| typedef unsigned long | rb_ulen_t |
| An unsigned integer type that has the same width with rb_len_t. | |
Definition in file value.h.
| #define HAVE_RB_LEN_T 1 |
| #define RB_LEN_MAX LONG_MAX |
Maximum possible value that a rb_len_t can take.
Definition at line 156 of file value.h.
Referenced by rb_econv_append(), rb_str_dump(), rb_str_modify_expand(), rb_str_plus(), rb_str_resize(), and rb_str_times().
| #define RB_LEN_MIN LONG_MIN |
Minimum possible value that a rb_len_t can take.
Definition at line 159 of file value.h.
Referenced by rb_str_subpos().
| #define RB_ULEN_MAX ULONG_MAX |
| #define RBIMPL_VALUE_FULL UINTPTR_MAX |
Maximum possible value that a VALUE can take.
Definition at line 90 of file value.h.
Referenced by RB_STATIC_SYM_P().
| #define RBIMPL_VALUE_NULL UINTPTR_C(0) |
A compile-time constant of type VALUE whose value is 0.
Definition at line 76 of file value.h.
Referenced by RB_FL_TEST(), and RBasic::RBasic().
| #define RBIMPL_VALUE_ONE UINTPTR_C(1) |
| #define SIZEOF_RB_LEN_T SIZEOF_LONG |
| #define SIZEOF_VALUE SIZEOF_UINTPTR_T |
Identical to sizeof(VALUE), except it is a macro that can also be used inside of preprocessor directives such as #if.
Handy on occasions.
Definition at line 69 of file value.h.
Referenced by rb_fix2str(), rb_memsearch(), and rb_uint2big().
| typedef uintptr_t ID |
Type that represents a Ruby identifier such as a variable name.
| typedef long rb_len_t |
| typedef unsigned long rb_ulen_t |
| typedef intptr_t SIGNED_VALUE |
| typedef uintptr_t VALUE |
Type that represents a Ruby object.
It is an unsigned integer of some kind, depending on platforms.