summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-03 17:22:45 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-03 17:22:45 +1000
commit4531d2c6485f1bda6243949adadbdec04fd2e22d (patch)
tree9056288a18486b9401fabaa10054b7d7a5e77627 /src/lapi.js
parent7895336f4c2aa80abc807493891f11174fd1690c (diff)
downloadfengari-4531d2c6485f1bda6243949adadbdec04fd2e22d.tar.gz
fengari-4531d2c6485f1bda6243949adadbdec04fd2e22d.tar.bz2
fengari-4531d2c6485f1bda6243949adadbdec04fd2e22d.zip
Remove lua_pushtvalue
Will probably be required again soon; but in a different form (e.g. should validate that TValue comes from same lua state)
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 862917d..6ef5a9e 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -124,11 +124,6 @@ const lua_pushvalue = function(L, idx) {
assert(L.top <= L.ci.top, "stack overflow");
};
-const lua_pushtvalue = function(L, tvalue) {
- L.stack[L.top++] = tvalue;
- assert(L.top <= L.ci.top, "stack overflow");
-};
-
const lua_settop = function(L, idx) {
let func = L.ci.funcOff;
if (idx >= 0) {
@@ -1070,7 +1065,6 @@ module.exports.lua_pushnil = lua_pushnil;
module.exports.lua_pushnumber = lua_pushnumber;
module.exports.lua_pushstring = lua_pushstring;
module.exports.lua_pushthread = lua_pushthread;
-module.exports.lua_pushtvalue = lua_pushtvalue;
module.exports.lua_pushvalue = lua_pushvalue;
module.exports.lua_rawequal = lua_rawequal;
module.exports.lua_rawget = lua_rawget;