mrubyを超漢字で動作させる
修訂 | ed5c13bc1108ffffc47ae1aa5ed088d0f4ddc596 (tree) |
---|---|
時間 | 2014-07-02 07:23:23 |
作者 | David Turnbull <dturnbull@gmai...> |
Commiter | David Turnbull |
Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are immediate.
@@ -398,7 +398,7 @@ struct RObject { | ||
398 | 398 | #define mrb_obj_ptr(v) ((struct RObject*)(mrb_ptr(v))) |
399 | 399 | /* obsolete macro mrb_object; will be removed soon */ |
400 | 400 | #define mrb_object(o) mrb_obj_ptr(o) |
401 | -#define mrb_immediate_p(x) (mrb_type(x) <= MRB_TT_CPTR) | |
401 | +#define mrb_immediate_p(x) (mrb_type(x) < MRB_TT_HAS_BASIC) | |
402 | 402 | #define mrb_special_const_p(x) mrb_immediate_p(x) |
403 | 403 | |
404 | 404 | struct RFiber { |