Merge pull request #4837 from shuujii/add-assertion-to-RVALUE-size

Add assertion to `RVALUE` size
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-11-27 09:47:35 +09:00
committed by GitHub
+3
View File
@@ -1609,6 +1609,9 @@ mrb_init_gc(mrb_state *mrb)
{
struct RClass *gc;
mrb_static_assert(sizeof(RVALUE) <= sizeof(void*) * 6,
"RVALUE size must be within 6 words");
gc = mrb_define_module(mrb, "GC");
mrb_define_class_method(mrb, gc, "start", gc_start, MRB_ARGS_NONE());