diff options
Diffstat (limited to 'src/3rdParty/lua/ldo.h')
-rw-r--r-- | src/3rdParty/lua/ldo.h | 10 |
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, | |||
58 | LUAI_FUNC void luaD_hook (lua_State *L, int event, int line, | 65 | LUAI_FUNC void luaD_hook (lua_State *L, int event, int line, |
59 | int fTransfer, int nTransfer); | 66 | int fTransfer, int nTransfer); |
60 | LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci); | 67 | LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci); |
61 | LUAI_FUNC int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int narg1, int delta); | 68 | LUAI_FUNC int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, |
69 | int narg1, int delta); | ||
62 | LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults); | 70 | LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults); |
63 | LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); | 71 | LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); |
64 | LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); | 72 | LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); |