diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-30 11:41:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-30 11:41:39 -0300 |
commit | d1e677c52be3b107a7a29fdc482158f6d9251e79 (patch) | |
tree | 6b201f229a9dc1f0752f6544b71498a4d528941d /lgc.c | |
parent | f7439112a5469078ac4f444106242cf1c1d3fe8a (diff) | |
download | lua-d1e677c52be3b107a7a29fdc482158f6d9251e79.tar.gz lua-d1e677c52be3b107a7a29fdc482158f6d9251e79.tar.bz2 lua-d1e677c52be3b107a7a29fdc482158f6d9251e79.zip |
New type 'TStatus' for thread status/error codes
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -953,7 +953,7 @@ static void GCTM (lua_State *L) { | |||
953 | setgcovalue(L, &v, udata2finalize(g)); | 953 | setgcovalue(L, &v, udata2finalize(g)); |
954 | tm = luaT_gettmbyobj(L, &v, TM_GC); | 954 | tm = luaT_gettmbyobj(L, &v, TM_GC); |
955 | if (!notm(tm)) { /* is there a finalizer? */ | 955 | if (!notm(tm)) { /* is there a finalizer? */ |
956 | int status; | 956 | TStatus status; |
957 | lu_byte oldah = L->allowhook; | 957 | lu_byte oldah = L->allowhook; |
958 | lu_byte oldgcstp = g->gcstp; | 958 | lu_byte oldgcstp = g->gcstp; |
959 | g->gcstp |= GCSTPGC; /* avoid GC steps */ | 959 | g->gcstp |= GCSTPGC; /* avoid GC steps */ |