diff options
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -224,15 +224,15 @@ | |||
224 | */ | 224 | */ |
225 | 225 | ||
226 | #if !defined(HARDMEMTESTS) | 226 | #if !defined(HARDMEMTESTS) |
227 | #define condchangemem(L,pre,pos) ((void)0) | 227 | #define condchangemem(L,pre,pos,emg) ((void)0) |
228 | #else | 228 | #else |
229 | #define condchangemem(L,pre,pos) \ | 229 | #define condchangemem(L,pre,pos,emg) \ |
230 | { if (gcrunning(G(L))) { pre; luaC_fullgc(L, 0); pos; } } | 230 | { if (gcrunning(G(L))) { pre; luaC_fullgc(L, emg); pos; } } |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | #define luaC_condGC(L,pre,pos) \ | 233 | #define luaC_condGC(L,pre,pos) \ |
234 | { if (G(L)->GCdebt <= 0) { pre; luaC_step(L); pos;}; \ | 234 | { if (G(L)->GCdebt <= 0) { pre; luaC_step(L); pos;}; \ |
235 | condchangemem(L,pre,pos); } | 235 | condchangemem(L,pre,pos,0); } |
236 | 236 | ||
237 | /* more often than not, 'pre'/'pos' are empty */ | 237 | /* more often than not, 'pre'/'pos' are empty */ |
238 | #define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0) | 238 | #define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0) |