Ruby
2.4.2p198(2017-09-14revision59899)
|
#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_sizeof (void) |
#define DEFINE | ( | type, | |
size | |||
) | rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(SIZEOF_##size)) |
Referenced by Init_sizeof().
#define DEFINE_SIZE | ( | type | ) | rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(sizeof(type))) |
Referenced by Init_sizeof().
void Init_sizeof | ( | void | ) |
Definition at line 12 of file sizes.c.
References DEFINE, DEFINE_SIZE, off_t, rb_define_const(), rb_define_module(), and rb_hash_new().