Sha256: ac2d78862c08895ae2baff23cef2064a62e6ef95d47da67dda03b2112a224ecc

Contents?: true

Size: 693 Bytes

Versions: 11

Compression:

Stored size: 693 Bytes

Contents

#ifndef BUILTINS_H
#define BUILTINS_H

#include "ruby.h"

/* Macros for manipulating builtins */

#ifndef RARRAY_LEN
#define RARRAY_LEN(a) RARRAY(a)->len
#endif

#ifndef RARRAY_PTR
#define RARRAY_PTR(a) RARRAY(a)->ptr
#endif

#ifndef RSTRING_LEN
#define RSTRING_LEN(a) RSTRING(a)->len
#endif

#ifndef RSTRING_PTR
#define RSTRING_PTR(a) RSTRING(a)->ptr
#endif

#ifndef RCLASS_SUPER
#define RCLASS_SUPER(c) RCLASS(c)->super
#endif

#ifndef RCLASS_IV_TBL
#define RCLASS_IV_TBL(c) RCLASS(c)->iv_tbl
#endif

#ifndef RCLASS_M_TBL
#define RCLASS_M_TBL(c) RCLASS(c)->m_tbl
#endif

#ifndef NEW_NODE
#define NEW_NODE(t,a0,a1,a2) \
rb_node_newnode((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
#endif

#endif

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby-internal-0.8.5 ext/internal/node/builtins.h
ruby-internal-0.8.4 ext/internal/node/builtins.h
ruby-internal-0.8.3 ext/internal/node/builtins.h
ruby-internal-0.8.2 ext/internal/node/builtins.h
ruby-internal-0.8.1 ext/internal/node/builtins.h
ruby-internal-0.8.0 ext/internal/node/builtins.h
ruby-internal-0.7.3 ext/internal/node/builtins.h
ruby-internal-0.7.2 ext/internal/node/builtins.h
ruby-internal-0.7.1 ext/internal/node/builtins.h
ruby-internal-0.7.0 ext/internal/node/builtins.h
ruby-internal-0.6.0 ext/internal/node/builtins.h