aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/ldo.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-08-25 11:24:10 +0800
committerLi Jin <dragon-fly@qq.com>2022-08-26 10:10:19 +0800
commitdf85ad2e7f975026ca1e6bd84b26fff81c8d99c8 (patch)
tree2b9300041c291382b15da3c354de3640a1498c1b /src/3rdParty/lua/ldo.h
parent2f497477c984e576e9ba7e8f6cb92ee9f794e56b (diff)
downloadyuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.gz
yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.bz2
yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.zip
update to Lua 5.4.5.
Diffstat (limited to 'src/3rdParty/lua/ldo.h')
-rw-r--r--src/3rdParty/lua/ldo.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/3rdParty/lua/ldo.h b/src/3rdParty/lua/ldo.h
index 911e67f..4661aa0 100644
--- a/src/3rdParty/lua/ldo.h
+++ b/src/3rdParty/lua/ldo.h
@@ -37,6 +37,13 @@
37 37
38 38
39/* macro to check stack size, preserving 'p' */ 39/* macro to check stack size, preserving 'p' */
40#define checkstackp(L,n,p) \
41 luaD_checkstackaux(L, n, \
42 ptrdiff_t t__ = savestack(L, p), /* save 'p' */ \
43 p = restorestack(L, t__)) /* 'pos' part: restore 'p' */
44
45
46/* macro to check stack size and GC, preserving 'p' */
40#define checkstackGCp(L,n,p) \ 47#define checkstackGCp(L,n,p) \
41 luaD_checkstackaux(L, n, \ 48 luaD_checkstackaux(L, n, \
42 ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \ 49 ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
@@ -58,7 +65,8 @@ LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
58LUAI_FUNC void luaD_hook (lua_State *L, int event, int line, 65LUAI_FUNC void luaD_hook (lua_State *L, int event, int line,
59 int fTransfer, int nTransfer); 66 int fTransfer, int nTransfer);
60LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci); 67LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci);
61LUAI_FUNC int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int narg1, int delta); 68LUAI_FUNC int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func,
69 int narg1, int delta);
62LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults); 70LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults);
63LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); 71LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
64LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); 72LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);