diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-12-21 07:39:25 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-12-21 07:39:25 -0300 |
| commit | 86ec152433baf8daf39f03a59c6842cbe33a179d (patch) | |
| tree | 20cf7e874309a73e12bf7643267e962972012614 | |
| parent | cf613cdc6fa367257fc61c256f63d917350858b5 (diff) | |
| download | lua-86ec152433baf8daf39f03a59c6842cbe33a179d.tar.gz lua-86ec152433baf8daf39f03a59c6842cbe33a179d.tar.bz2 lua-86ec152433baf8daf39f03a59c6842cbe33a179d.zip | |
Details
correction in macro for hard tests + type in comment
| -rw-r--r-- | lapi.c | 2 | ||||
| -rw-r--r-- | llimits.h | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -1143,7 +1143,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
| 1143 | va_start(argp, what); | 1143 | va_start(argp, what); |
| 1144 | switch (what) { | 1144 | switch (what) { |
| 1145 | case LUA_GCSTOP: { | 1145 | case LUA_GCSTOP: { |
| 1146 | g->gcstp = GCSTPUSR; /* stopeed by the user */ | 1146 | g->gcstp = GCSTPUSR; /* stopped by the user */ |
| 1147 | break; | 1147 | break; |
| 1148 | } | 1148 | } |
| 1149 | case LUA_GCRESTART: { | 1149 | case LUA_GCRESTART: { |
| @@ -361,7 +361,7 @@ typedef l_uint32 Instruction; | |||
| 361 | #define condchangemem(L,pre,pos) ((void)0) | 361 | #define condchangemem(L,pre,pos) ((void)0) |
| 362 | #else | 362 | #else |
| 363 | #define condchangemem(L,pre,pos) \ | 363 | #define condchangemem(L,pre,pos) \ |
| 364 | { if (G(L)->gcrunning) { pre; luaC_fullgc(L, 0); pos; } } | 364 | { if (gcrunning(G(L))) { pre; luaC_fullgc(L, 0); pos; } } |
| 365 | #endif | 365 | #endif |
| 366 | 366 | ||
| 367 | #endif | 367 | #endif |
