diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-28 16:34:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-28 16:34:07 -0300 |
commit | 6188f3a654c0380db08eb40a5465ce8e71c784f5 (patch) | |
tree | 1a94cd5c0d815a2c23e3ebb967b3019c55c7a128 /lstate.h | |
parent | 7af27ef59da4051914d93d8b63efac663b64765a (diff) | |
download | lua-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -359,6 +359,7 @@ LUAI_FUNC void luaE_checkcstack (lua_State *L); | |||
359 | LUAI_FUNC void luaE_incCstack (lua_State *L); | 359 | LUAI_FUNC void luaE_incCstack (lua_State *L); |
360 | LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont); | 360 | LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont); |
361 | LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where); | 361 | LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where); |
362 | LUAI_FUNC int luaE_resetthread (lua_State *L, int status); | ||
362 | 363 | ||
363 | 364 | ||
364 | #endif | 365 | #endif |