Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Arithmetic conversion between C's intptr_t and Ruby's. More...
#include "ruby/internal/config.h"
#include "ruby/internal/value.h"
#include "ruby/internal/dllexport.h"
Go to the source code of this file.
Macros | |
#define | rb_int_new rb_int2inum |
Just another name of rb_int2inum. | |
#define | rb_uint_new rb_uint2inum |
Just another name of rb_uint2inum. |
Functions | |
VALUE | rb_int2big (intptr_t i) |
Converts a C's intptr_t into an instance of rb_cInteger. | |
VALUE | rb_int2inum (intptr_t i) |
Converts a C's intptr_t into an instance of rb_cInteger. | |
VALUE | rb_uint2big (uintptr_t i) |
Converts a C's intptr_t into an instance of rb_cInteger. | |
VALUE | rb_uint2inum (uintptr_t i) |
Converts a C's uintptr_t into an instance of rb_cInteger. |
Arithmetic conversion between C's intptr_t and Ruby's.
Definition in file intptr_t.h.
#define rb_int_new rb_int2inum |
Just another name of rb_int2inum.
Definition at line 32 of file intptr_t.h.
#define rb_uint_new rb_uint2inum |
Just another name of rb_uint2inum.
Definition at line 33 of file intptr_t.h.
VALUE rb_int2big | ( | intptr_t | i | ) |
Converts a C's intptr_t into an instance of rb_cInteger.
[in] | i | Arbitrary intptr_t value. |
VALUE rb_int2inum | ( | intptr_t | i | ) |
Converts a C's intptr_t into an instance of rb_cInteger.
[in] | i | Arbitrary intptr_t value. |
VALUE rb_uint2big | ( | uintptr_t | i | ) |
Converts a C's intptr_t into an instance of rb_cInteger.
[in] | i | Arbitrary intptr_t value. |
VALUE rb_uint2inum | ( | uintptr_t | i | ) |
Converts a C's uintptr_t into an instance of rb_cInteger.
[in] | i | Arbitrary uintptr_t value. |