diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-22 23:26:44 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-23 00:52:05 +1000 |
commit | 13328c5bee9b847317313491c3eb9f6f66766de7 (patch) | |
tree | 296f23842670f89b07227e0546ed40a42d9ea2f6 /src/ldo.js | |
parent | e6639768e4a059aeaf80e232c729dffa3b5e93ba (diff) | |
download | fengari-13328c5bee9b847317313491c3eb9f6f66766de7.tar.gz fengari-13328c5bee9b847317313491c3eb9f6f66766de7.tar.bz2 fengari-13328c5bee9b847317313491c3eb9f6f66766de7.zip |
Add luaD_inctop calls where appropriate
Diffstat (limited to 'src/ldo.js')
-rw-r--r-- | src/ldo.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -89,6 +89,11 @@ const luaD_shrinkstack = function(L) { luaD_reallocstack(L, goodsize); }; +const luaD_inctop = function(L) { + luaD_checkstack(L, 1); + L.top++; +}; + /* ** Prepares a function call: checks the stack, creates a new CallInfo ** entry, fills in the relevant information, calls hook if needed. @@ -653,6 +658,7 @@ module.exports.luaD_callnoyield = luaD_callnoyield; module.exports.luaD_checkstack = luaD_checkstack; module.exports.luaD_growstack = luaD_growstack; module.exports.luaD_hook = luaD_hook; +module.exports.luaD_inctop = luaD_inctop; module.exports.luaD_pcall = luaD_pcall; module.exports.luaD_poscall = luaD_poscall; module.exports.luaD_precall = luaD_precall; |