Ruby  2.1.10p492(2016-04-01revision54464)
Macros | Functions
sizes.c File Reference
#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));
 

Functions

void Init_sizeof (void)
 

Macro Definition Documentation

◆ DEFINE

#define DEFINE (   type,
  size 
)    rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(SIZEOF_##size));

Referenced by Init_sizeof().

Function Documentation

◆ Init_sizeof()

void Init_sizeof ( void  )

Definition at line 4 of file sizes.c.

References DEFINE, off_t, rb_define_const(), rb_define_module(), and rb_hash_new().