aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.h b/lgc.h
index 6d82690d..c8f7c6e6 100644
--- a/lgc.h
+++ b/lgc.h
@@ -175,13 +175,13 @@
175 175
176 176
177/* 177/*
178** Does one step of collection when debt becomes positive. 'pre'/'pos' 178** Does one step of collection when debt becomes zero. 'pre'/'pos'
179** allows some adjustments to be done only when needed. macro 179** allows some adjustments to be done only when needed. macro
180** 'condchangemem' is used only for heavy tests (forcing a full 180** 'condchangemem' is used only for heavy tests (forcing a full
181** GC cycle on every opportunity) 181** GC cycle on every opportunity)
182*/ 182*/
183#define luaC_condGC(L,pre,pos) \ 183#define luaC_condGC(L,pre,pos) \
184 { if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \ 184 { if (G(L)->GCdebt <= 0) { pre; luaC_step(L); pos;}; \
185 condchangemem(L,pre,pos); } 185 condchangemem(L,pre,pos); }
186 186
187/* more often than not, 'pre'/'pos' are empty */ 187/* more often than not, 'pre'/'pos' are empty */