aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/ldo.h
diff options
context:
space:
mode:
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);