correction in macro for hard tests + type in comment
This commit is contained in:
Roberto Ierusalimschy
2021-12-21 07:39:25 -03:00
parent cf613cdc6f
commit 86ec152433
2 changed files with 2 additions and 2 deletions

View File

@@ -361,7 +361,7 @@ typedef l_uint32 Instruction;
#define condchangemem(L,pre,pos) ((void)0)
#else
#define condchangemem(L,pre,pos) \
{ if (G(L)->gcrunning) { pre; luaC_fullgc(L, 0); pos; } }
{ if (gcrunning(G(L))) { pre; luaC_fullgc(L, 0); pos; } }
#endif
#endif