diff options
| author | Li Jin <dragon-fly@qq.com> | 2022-08-25 11:24:10 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2022-08-26 10:10:19 +0800 |
| commit | df85ad2e7f975026ca1e6bd84b26fff81c8d99c8 (patch) | |
| tree | 2b9300041c291382b15da3c354de3640a1498c1b /src/3rdParty/lua/ldo.h | |
| parent | 2f497477c984e576e9ba7e8f6cb92ee9f794e56b (diff) | |
| download | yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.gz yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.bz2 yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.zip | |
update to Lua 5.4.5.
Diffstat (limited to '')
| -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); |
