aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-28 11:40:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-28 11:40:30 -0300
commit7af27ef59da4051914d93d8b63efac663b64765a (patch)
tree73ac919879b442904112dbb972412fc15983d50e /ldo.h
parent0ceada8da92135717d31a3954b5b89a954f9e71a (diff)
downloadlua-7af27ef59da4051914d93d8b63efac663b64765a.tar.gz
lua-7af27ef59da4051914d93d8b63efac663b64765a.tar.bz2
lua-7af27ef59da4051914d93d8b63efac663b64765a.zip
Cleaner handling of errors in '__close' metamethods
Instead of protecting each individual metamethod call, protect the entire call to 'luaF_close'.
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldo.h b/ldo.h
index 4d30d072..c7721d62 100644
--- a/ldo.h
+++ b/ldo.h
@@ -63,6 +63,7 @@ LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults);
63LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); 63LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
64LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); 64LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);
65LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func); 65LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func);
66LUAI_FUNC int luaD_closeprotected (lua_State *L, ptrdiff_t level, int status);
66LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, 67LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
67 ptrdiff_t oldtop, ptrdiff_t ef); 68 ptrdiff_t oldtop, ptrdiff_t ef);
68LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres); 69LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres);