Commit 17b0d658 authored by cremno's avatar cremno

delete obsolete macros (mrb_basic + mrb_object)

Over a year ago is not "soon" anymore. See:
88483fad
24366930
parent 607795ff
...@@ -37,16 +37,13 @@ struct RBasic { ...@@ -37,16 +37,13 @@ struct RBasic {
MRB_OBJECT_HEADER; MRB_OBJECT_HEADER;
}; };
#define mrb_basic_ptr(v) ((struct RBasic*)(mrb_ptr(v))) #define mrb_basic_ptr(v) ((struct RBasic*)(mrb_ptr(v)))
/* obsolete macro mrb_basic; will be removed soon */
#define mrb_basic(v) mrb_basic_ptr(v)
struct RObject { struct RObject {
MRB_OBJECT_HEADER; MRB_OBJECT_HEADER;
struct iv_tbl *iv; struct iv_tbl *iv;
}; };
#define mrb_obj_ptr(v) ((struct RObject*)(mrb_ptr(v))) #define mrb_obj_ptr(v) ((struct RObject*)(mrb_ptr(v)))
/* obsolete macro mrb_object; will be removed soon */
#define mrb_object(o) mrb_obj_ptr(o)
#define mrb_immediate_p(x) (mrb_type(x) < MRB_TT_HAS_BASIC) #define mrb_immediate_p(x) (mrb_type(x) < MRB_TT_HAS_BASIC)
#define mrb_special_const_p(x) mrb_immediate_p(x) #define mrb_special_const_p(x) mrb_immediate_p(x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment