diff options
Diffstat (limited to 'ruby.h')
-rw-r--r-- | ruby.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -374,6 +374,11 @@ struct RHash { int iter_lev; VALUE ifnone; }; +#define RHASH_TBL(h) (RHASH(h)->tbl) +#define RHASH_ITER_LEV(h) (RHASH(h)->iter_lev) +#define RHASH_IFNONE(h) (RHASH(h)->ifnone) +#define RHASH_SIZE(h) (RHASH(h)->tbl->num_entries) +#define RHASH_EMPTY_P(h) (RHASH_SIZE(h) == 0) struct RFile { struct RBasic basic; |