Skip to content
Permalink
Browse files
Add assertion to RVALUE size
  • Loading branch information
shuujii committed Nov 23, 2019
1 parent 56f9106 commit 6cf99d12ac17e50b91e6aeb0dd79c611e579fd1b
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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());

0 comments on commit 6cf99d1

Please sign in to comment.