mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are immediate.
This commit is contained in:
@@ -398,7 +398,7 @@ struct RObject {
|
||||
#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_CPTR)
|
||||
#define mrb_immediate_p(x) (mrb_type(x) < MRB_TT_HAS_BASIC)
|
||||
#define mrb_special_const_p(x) mrb_immediate_p(x)
|
||||
|
||||
struct RFiber {
|
||||
|
||||
Reference in New Issue
Block a user