rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-08-07 17:39:28 +09:00
parent 81f1476a04
commit 40e6cdcb5c
11 changed files with 23 additions and 23 deletions
+4 -4
View File
@@ -18,10 +18,10 @@ struct RClass {
struct RClass *super;
};
#define mrb_class_ptr(v) ((struct RClass*)(mrb_value_p(v)))
#define RCLASS_SUPER(v) (((struct RClass*)(mrb_value_p(v)))->super)
#define RCLASS_IV_TBL(v) (((struct RClass*)(mrb_value_p(v)))->iv)
#define RCLASS_M_TBL(v) (((struct RClass*)(mrb_value_p(v)))->mt)
#define mrb_class_ptr(v) ((struct RClass*)(mrb_ptr(v)))
#define RCLASS_SUPER(v) (((struct RClass*)(mrb_ptr(v)))->super)
#define RCLASS_IV_TBL(v) (((struct RClass*)(mrb_ptr(v)))->iv)
#define RCLASS_M_TBL(v) (((struct RClass*)(mrb_ptr(v)))->mt)
static inline struct RClass*
mrb_class(mrb_state *mrb, mrb_value v)