Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
#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. |
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. |
Definition in file value.h.
#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_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 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.