24 #include "ruby/internal/config.h"
32 #if !defined RUBY_EXPORT && !defined RUBY_NO_OLD_COMPATIBILITY
33 # include "ruby/backward.h"
46 #define RHASH_TBL(h) rb_hash_tbl(h, __FILE__, __LINE__)
59 #define RHASH_IFNONE(h) rb_hash_ifnone(h)
69 #define RHASH_SIZE(h) rb_hash_size_num(h)
79 #define RHASH_EMPTY_P(h) (RHASH_SIZE(h) == 0)
92 #define RHASH_SET_IFNONE(h, ifnone) rb_hash_set_ifnone((VALUE)h, ifnone)
Tweaking 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" {.
VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone)
This is the implementation detail of RHASH_SET_IFNONE.
struct st_table * rb_hash_tbl(VALUE hash, const char *file, int line)
This is the implementation detail of RHASH_TBL.
size_t rb_hash_size_num(VALUE hash)
This is the implementation detail of RHASH_SIZE.
uintptr_t VALUE
Type that represents a Ruby object.