Ruby  2.5.0dev(2017-10-22revision60238)
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))
 
#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)
 

Macro Definition Documentation

◆ DEFINE

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

Referenced by Init_sizeof().

◆ DEFINE_SIZE

#define DEFINE_SIZE (   type)    rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(sizeof(type)))

Referenced by Init_sizeof().

Function Documentation

◆ Init_limits()

void Init_limits ( void  )

◆ Init_sizeof()

void Init_sizeof ( void  )