mirror of https://github.com/rusefi/lua.git
Details
correction in macro for hard tests + type in comment
This commit is contained in:
parent
cf613cdc6f
commit
86ec152433
2
lapi.c
2
lapi.c
|
@ -1143,7 +1143,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) {
|
||||||
va_start(argp, what);
|
va_start(argp, what);
|
||||||
switch (what) {
|
switch (what) {
|
||||||
case LUA_GCSTOP: {
|
case LUA_GCSTOP: {
|
||||||
g->gcstp = GCSTPUSR; /* stopeed by the user */
|
g->gcstp = GCSTPUSR; /* stopped by the user */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LUA_GCRESTART: {
|
case LUA_GCRESTART: {
|
||||||
|
|
|
@ -361,7 +361,7 @@ typedef l_uint32 Instruction;
|
||||||
#define condchangemem(L,pre,pos) ((void)0)
|
#define condchangemem(L,pre,pos) ((void)0)
|
||||||
#else
|
#else
|
||||||
#define condchangemem(L,pre,pos) \
|
#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
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue