From 94c5c8f44c70646e665cc1518ddac68165d3986f Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 24 Apr 2021 10:31:21 +0900 Subject: Introduce `MRB_GC_RED` Replaces the magic number `7` except in `src/gc.c`. --- src/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/proc.c') diff --git a/src/proc.c b/src/proc.c index 5419ac002..78ce0e791 100644 --- a/src/proc.c +++ b/src/proc.c @@ -36,7 +36,7 @@ static const mrb_irep call_irep = { }; static const struct RProc call_proc = { - NULL, NULL, MRB_TT_PROC, 7 /* GC_RED */, MRB_FL_OBJ_IS_FROZEN | MRB_PROC_SCOPE | MRB_PROC_STRICT, + NULL, NULL, MRB_TT_PROC, MRB_GC_RED, MRB_FL_OBJ_IS_FROZEN | MRB_PROC_SCOPE | MRB_PROC_STRICT, { &call_irep }, NULL, { NULL } }; @@ -51,7 +51,7 @@ mrb_proc_new(mrb_state *mrb, const mrb_irep *irep) struct RClass *tc = NULL; if (ci->proc) { - if (ci->proc->color != 7 /* GC_RED */) { + if (ci->proc->color != MRB_GC_RED) { tc = MRB_PROC_TARGET_CLASS(ci->proc); } else { -- cgit v1.2.3