42#define RB_ID2SYM rb_id2sym
43#define RB_SYM2ID rb_sym2id
44#define ID2SYM RB_ID2SYM
45#define SYM2ID RB_SYM2ID
46#define CONST_ID_CACHE RUBY_CONST_ID_CACHE
47#define CONST_ID RUBY_CONST_ID
50#define rb_intern_const rb_intern_const
83 *
ptr = rb_intern_const(
str);
90#define RUBY_CONST_ID_CACHE(result, str) \
92 static ID rb_intern_id_cache; \
93 rbimpl_intern_const(&rb_intern_id_cache, (str)); \
94 result rb_intern_id_cache; \
96#define RUBY_CONST_ID(var, str) \
98 static ID rbimpl_id; \
99 (var) = rbimpl_intern_const(&rbimpl_id, (str)); \
102#if defined(HAVE_STMT_AND_DECL_IN_EXPR)
105#define rb_intern(str) \
106 (RBIMPL_CONSTANT_P(str) ? \
108 static ID rbimpl_id; \
109 rbimpl_intern_const(&rbimpl_id, (str)); \
Defines RBIMPL_CONSTANT_P.
Tewaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
char str[HTML_ESCAPE_MAX_LEN+1]
#define rb_intern_str(string)
Thin wrapper to ruby/config.h.
Defines RBIMPL_HAS_BUILTIN.
VALUE rb_check_symbol(volatile VALUE *namep)
Returns Symbol for the given name if it is interned already, or nil.
const char * rb_id2name(ID)
ID rb_intern2(const char *, long)
ID rb_intern(const char *)
ID rb_check_id(volatile VALUE *)
Returns ID for the given name if it is interned already, or 0.
VALUE rb_to_symbol(VALUE name)
Defines RBIMPL_ATTR_NOALIAS.
#define RBIMPL_ATTR_NOALIAS()
Wraps (or simulates) __declspec((noalias))
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Defines RBIMPL_ATTR_PURE.
#define RBIMPL_ATTR_PURE()
Wraps (or simulates) __attribute__((pure))
size_t strlen(const char *)