aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-01-30 11:41:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-01-30 11:41:39 -0300
commitd1e677c52be3b107a7a29fdc482158f6d9251e79 (patch)
tree6b201f229a9dc1f0752f6544b71498a4d528941d /lgc.c
parentf7439112a5469078ac4f444106242cf1c1d3fe8a (diff)
downloadlua-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lgc.c b/lgc.c
index 1e9f7569..8a82b6d9 100644
--- a/lgc.c
+++ b/lgc.c
@@ -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 */