Ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a25176072e02db9254f0e0c84c805cd)
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))

◆ DEFINE_SIZE

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

Function Documentation

◆ Init_limits()

void Init_limits ( void  )

Definition at line 14 of file limits.c.

◆ Init_sizeof()

void Init_sizeof ( void  )