@@ -170,17 +170,17 @@ typedef struct mrb_heap_page {
|
170 | 170 | #define GC_COLOR_MASK 7 |
171 | 171 | mrb_static_assert(MRB_GC_RED <= GC_COLOR_MASK); |
172 | 172 | |
173 | | -#define paint_gray(o) ((o)->gccolor = GC_GRAY) |
174 | | -#define paint_black(o) ((o)->gccolor = GC_BLACK) |
175 | | -#define paint_white(o) ((o)->gccolor = GC_WHITES) |
176 | | -#define paint_partial_white(s, o) ((o)->gccolor = (s)->current_white_part) |
177 | | -#define is_gray(o) ((o)->gccolor == GC_GRAY) |
178 | | -#define is_white(o) ((o)->gccolor & GC_WHITES) |
179 | | -#define is_black(o) ((o)->gccolor == GC_BLACK) |
180 | | -#define is_red(o) ((o)->gccolor == GC_RED) |
| 173 | +#define paint_gray(o) ((o)->gc_color = GC_GRAY) |
| 174 | +#define paint_black(o) ((o)->gc_color = GC_BLACK) |
| 175 | +#define paint_white(o) ((o)->gc_color = GC_WHITES) |
| 176 | +#define paint_partial_white(s, o) ((o)->gc_color = (s)->current_white_part) |
| 177 | +#define is_gray(o) ((o)->gc_color == GC_GRAY) |
| 178 | +#define is_white(o) ((o)->gc_color & GC_WHITES) |
| 179 | +#define is_black(o) ((o)->gc_color == GC_BLACK) |
| 180 | +#define is_red(o) ((o)->gc_color == GC_RED) |
181 | 181 | #define flip_white_part(s) ((s)->current_white_part = other_white_part(s)) |
182 | 182 | #define other_white_part(s) ((s)->current_white_part ^ GC_WHITES) |
183 | | -#define is_dead(s, o) (((o)->gccolor & other_white_part(s) & GC_WHITES) || (o)->tt == MRB_TT_FREE) |
| 183 | +#define is_dead(s, o) (((o)->gc_color & other_white_part(s) & GC_WHITES) || (o)->tt == MRB_TT_FREE) |
184 | 184 | |
185 | 185 | mrb_noreturn void mrb_raise_nomemory(mrb_state *mrb); |
186 | 186 | |
|