Skip to content
Browse files
asserts checking validity of pointer and TT added for mrb_obj_value
Useful for testing when using boxing on different platforms.
  • Loading branch information
dabroz committed Nov 21, 2016
1 parent c385782 commit b21b02465e6643879394b41494a3462079347a92
Showing 1 changed file with 2 additions and 0 deletions.
@@ -211,6 +211,8 @@ mrb_obj_value(void *p)
mrb_value v;
SET_OBJ_VALUE(v, (struct RBasic*)p);
mrb_assert(p == mrb_ptr(v));
mrb_assert(((struct RBasic*)p)->tt == mrb_type(v));
return v;

0 comments on commit b21b024

Please sign in to comment.