Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
#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.
Referenced by Init_sizeof().
Definition at line 13 of file sizes.c.
References __INT64, DEFINE, DEFINE_SIZE, Init_limits(), LONG_LONG, OBJ_FREEZE, rb_define_const(), rb_define_module(), and rb_hash_new().