diff options
Diffstat (limited to 'src/lj_gc.h')
-rw-r--r-- | src/lj_gc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_gc.h b/src/lj_gc.h index ec1a9643..dd7f87ba 100644 --- a/src/lj_gc.h +++ b/src/lj_gc.h | |||
@@ -38,6 +38,8 @@ enum { | |||
38 | 38 | ||
39 | #define curwhite(g) ((g)->gc.currentwhite & LJ_GC_WHITES) | 39 | #define curwhite(g) ((g)->gc.currentwhite & LJ_GC_WHITES) |
40 | #define newwhite(g, x) (obj2gco(x)->gch.marked = (uint8_t)curwhite(g)) | 40 | #define newwhite(g, x) (obj2gco(x)->gch.marked = (uint8_t)curwhite(g)) |
41 | #define makewhite(g, x) \ | ||
42 | ((x)->gch.marked = ((x)->gch.marked & (uint8_t)~LJ_GC_COLORS) | curwhite(g)) | ||
41 | #define flipwhite(x) ((x)->gch.marked ^= LJ_GC_WHITES) | 43 | #define flipwhite(x) ((x)->gch.marked ^= LJ_GC_WHITES) |
42 | #define black2gray(x) ((x)->gch.marked &= (uint8_t)~LJ_GC_BLACK) | 44 | #define black2gray(x) ((x)->gch.marked &= (uint8_t)~LJ_GC_BLACK) |
43 | #define fixstring(s) ((s)->marked |= LJ_GC_FIXED) | 45 | #define fixstring(s) ((s)->marked |= LJ_GC_FIXED) |