aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-28 16:34:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-28 16:34:07 -0300
commit6188f3a654c0380db08eb40a5465ce8e71c784f5 (patch)
tree1a94cd5c0d815a2c23e3ebb967b3019c55c7a128 /lstate.h
parent7af27ef59da4051914d93d8b63efac663b64765a (diff)
downloadlua-6188f3a654c0380db08eb40a5465ce8e71c784f5.tar.gz
lua-6188f3a654c0380db08eb40a5465ce8e71c784f5.tar.bz2
lua-6188f3a654c0380db08eb40a5465ce8e71c784f5.zip
Reset thread before panicking
Before panicking, it is simpler to reset the thread instead of closing its variables and adjust the top manually.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lstate.h b/lstate.h
index cbcf07e2..38a6c9b6 100644
--- a/lstate.h
+++ b/lstate.h
@@ -359,6 +359,7 @@ LUAI_FUNC void luaE_checkcstack (lua_State *L);
359LUAI_FUNC void luaE_incCstack (lua_State *L); 359LUAI_FUNC void luaE_incCstack (lua_State *L);
360LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont); 360LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont);
361LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where); 361LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where);
362LUAI_FUNC int luaE_resetthread (lua_State *L, int status);
362 363
363 364
364#endif 365#endif