Ruby: include/ruby/internal/arithmetic/intptr_t.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

intptr_t.h
Go to the documentation of this file.
1#ifndef RBIMPL_ARITHMETIC_INTPTR_T_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ARITHMETIC_INTPTR_T_H
23#include "ruby/internal/config.h"
24
25#ifdef HAVE_STDINT_H
26# include <stdint.h>
27#endif
28
29#include "ruby/internal/value.h"
30#include "ruby/internal/dllexport.h"
31
32#define rb_int_new rb_int2inum
33#define rb_uint_new rb_uint2inum
34
35 RBIMPL_SYMBOL_EXPORT_BEGIN()
36 VALUE rb_int2big(intptr_t i);
37 VALUE rb_int2inum(intptr_t i);
38 VALUE rb_uint2big(uintptr_t i);
39 VALUE rb_uint2inum(uintptr_t i);
40 RBIMPL_SYMBOL_EXPORT_END()
41
42#endif /* RBIMPL_ARITHMETIC_INTPTR_T_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
config.h
Thin wrapper to ruby/config.h.
rb_int2inum
VALUE rb_int2inum(intptr_t i)
Definition: bignum.c:3214
rb_uint2big
VALUE rb_uint2big(uintptr_t i)
Definition: bignum.c:3164
rb_int2big
VALUE rb_int2big(intptr_t i)
Definition: bignum.c:3186
rb_uint2inum
VALUE rb_uint2inum(uintptr_t i)
Definition: bignum.c:3207
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38
intptr_t
int intptr_t
Definition: win32.h:90
uintptr_t
unsigned int uintptr_t
Definition: win32.h:106