aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lgc.h b/lgc.h
index bd5020cb..4501db51 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.86 2014/10/25 11:50:46 roberto Exp roberto $ 2** $Id: lgc.h,v 2.87 2015/08/03 19:40:42 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -101,9 +101,10 @@
101#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) 101#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS)
102 102
103 103
104#define luaC_condGC(L,c) \ 104#define luaC_condGC(L,pre,pos) \
105 {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} 105 {if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; condchangemem(L);}
106#define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) 106
107#define luaC_checkGC(L) luaC_condGC(L,,)
107 108
108 109
109#define luaC_barrier(L,p,v) ( \ 110#define luaC_barrier(L,p,v) ( \