summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 23:26:44 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-23 00:52:05 +1000
commit13328c5bee9b847317313491c3eb9f6f66766de7 (patch)
tree296f23842670f89b07227e0546ed40a42d9ea2f6 /src/ldo.js
parente6639768e4a059aeaf80e232c729dffa3b5e93ba (diff)
downloadfengari-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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 83f26cf..fbef68f 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -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;