Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
|
#include "ruby/ruby.h"
Go to the source code of this file.
Macros | |
#define | DEFINE(type, size) rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(SIZEOF_##size)) |
#define | DEFINE_SIZE(type) rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(sizeof(type))) |
Functions | |
void | Init_limits (void) |
void | Init_sizeof (void) |
#define DEFINE | ( | type, | |
size | |||
) | rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(SIZEOF_##size)) |
#define DEFINE_SIZE | ( | type | ) | rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(sizeof(type))) |
Definition at line 14 of file limits.c.
References CHAR_MAX, CHAR_MIN, DEFINE, FIXNUM_MAX, FIXNUM_MIN, h, INT_MAX, INT_MIN, LONG_MAX, LONG_MIN, MAX2NUM, MIN2NUM, rb_define_const(), rb_define_module(), rb_hash_new(), SCHAR_MAX, SCHAR_MIN, SHRT_MAX, SHRT_MIN, UCHAR_MAX, UINT_MAX, ULONG_MAX, USHRT_MAX, WCHAR_MAX, and WCHAR_MIN.
Referenced by Init_sizeof().
Definition at line 13 of file sizes.c.
References __INT64, DEFINE, DEFINE_SIZE, Init_limits(), int128_t, LONG_LONG, OBJ_FREEZE, rb_define_const(), rb_define_module(), rb_hash_new(), and uint128_t.