diff options
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -211,6 +211,14 @@ | |||
211 | ** 'condchangemem' is used only for heavy tests (forcing a full | 211 | ** 'condchangemem' is used only for heavy tests (forcing a full |
212 | ** GC cycle on every opportunity) | 212 | ** GC cycle on every opportunity) |
213 | */ | 213 | */ |
214 | |||
215 | #if !defined(HARDMEMTESTS) | ||
216 | #define condchangemem(L,pre,pos) ((void)0) | ||
217 | #else | ||
218 | #define condchangemem(L,pre,pos) \ | ||
219 | { if (gcrunning(G(L))) { pre; luaC_fullgc(L, 0); pos; } } | ||
220 | #endif | ||
221 | |||
214 | #define luaC_condGC(L,pre,pos) \ | 222 | #define luaC_condGC(L,pre,pos) \ |
215 | { if (G(L)->GCdebt <= 0) { pre; luaC_step(L); pos;}; \ | 223 | { if (G(L)->GCdebt <= 0) { pre; luaC_step(L); pos;}; \ |
216 | condchangemem(L,pre,pos); } | 224 | condchangemem(L,pre,pos); } |