|
Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
|
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. | |
| #define | PTR2NUM(x) |
| #define | NUM2PTR(x) |
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 NUM2PTR | ( | x | ) |
Definition at line 38 of file intptr_t.h.
| #define PTR2NUM | ( | x | ) |
Definition at line 37 of 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. |