Ruby  2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
Macros | Functions
limits.c File Reference
#include <limits.h>
#include "ruby/ruby.h"

Go to the source code of this file.

Macros

#define MAX2NUM(name)   ULONG2NUM(name ## _MAX)
 
#define MIN2NUM(name)   LONG2NUM(name ## _MIN)
 
#define DEFINE(k, v)   rb_hash_aset(h, rb_str_new_cstr(#k), v)
 

Functions

void Init_limits (void)
 

Macro Definition Documentation

◆ DEFINE

#define DEFINE (   k,
  v 
)    rb_hash_aset(h, rb_str_new_cstr(#k), v)

◆ MAX2NUM

#define MAX2NUM (   name)    ULONG2NUM(name ## _MAX)

◆ MIN2NUM

#define MIN2NUM (   name)    LONG2NUM(name ## _MIN)

Function Documentation

◆ Init_limits()

void Init_limits ( void  )