Add assertion to RVALUE size

This commit is contained in:
KOBAYASHI Shuji
2019-11-23 17:36:46 +09:00
parent 56f9106d94
commit 6cf99d12ac
+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());