Add MRB_TT_HAS_BASIC_P macro to check whether a typetag has MRB_OBJECT_HEADER.

This commit is contained in:
take_cheeze
2014-04-09 14:26:26 +09:00
parent 63cf7073de
commit 90d74b99ff
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -469,6 +469,8 @@ mrb_cptr_value(struct mrb_state *mrb, void *p)
#define mrb_voidp(o) mrb_cptr(o)
#define mrb_voidp_p(o) mrb_cptr_p(o)
#define MRB_TT_HAS_BASIC_P(tt) ((tt) >= MRB_TT_HAS_BASIC)
static inline mrb_value
mrb_false_value(void)
{