summaryrefslogtreecommitdiff
path: root/libs/liblua/src/lfunc.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-03 16:49:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-03 16:49:51 +0300
commit24cc09ca79cf8d53e10e23b1103287f168570899 (patch)
tree2c78d9f116f861cab073d41cd0190e92eccfabc6 /libs/liblua/src/lfunc.h
parentdd212611826b7c44e8a3c6cd2209b46d7cd03177 (diff)
Revert "liblua: update to 5.4.3"
This reverts commit 875bc74fa5fe083ba0b5c5a785c53ec0f49b9a1b.
Diffstat (limited to 'libs/liblua/src/lfunc.h')
-rw-r--r--libs/liblua/src/lfunc.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/libs/liblua/src/lfunc.h b/libs/liblua/src/lfunc.h
index dc1cebccd1..8d6f965cfc 100644
--- a/libs/liblua/src/lfunc.h
+++ b/libs/liblua/src/lfunc.h
@@ -42,9 +42,15 @@
#define MAXMISS 10
+/*
+** Special "status" for 'luaF_close'
+*/
+
+/* close upvalues without running their closing methods */
+#define NOCLOSINGMETH (-1)
-/* special status to close upvalues preserving the top of the stack */
-#define CLOSEKTOP (-1)
+/* close upvalues running all closing methods in protected mode */
+#define CLOSEPROTECT (-2)
LUAI_FUNC Proto *luaF_newproto (lua_State *L);
@@ -53,8 +59,7 @@ LUAI_FUNC LClosure *luaF_newLclosure (lua_State *L, int nupvals);
LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl);
LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
LUAI_FUNC void luaF_newtbcupval (lua_State *L, StkId level);
-LUAI_FUNC void luaF_closeupval (lua_State *L, StkId level);
-LUAI_FUNC void luaF_close (lua_State *L, StkId level, int status, int yy);
+LUAI_FUNC int luaF_close (lua_State *L, StkId level, int status);
LUAI_FUNC void luaF_unlinkupval (UpVal *uv);
LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,