summaryrefslogtreecommitdiff
path: root/src/luaconf.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-25 14:49:09 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-25 14:49:09 +0100
commit9e2ace863b568ed7c3ef42bf687c7cafd3a71bb7 (patch)
treee750c42fc3b75938c6f223d3d3226d399eb35dfd /src/luaconf.js
parent0a006ad403733a85abe5be3f242c0264a4556afb (diff)
downloadfengari-9e2ace863b568ed7c3ef42bf687c7cafd3a71bb7.tar.gz
fengari-9e2ace863b568ed7c3ef42bf687c7cafd3a71bb7.tar.bz2
fengari-9e2ace863b568ed7c3ef42bf687c7cafd3a71bb7.zip
math.tointeger, math.floor, math.ceil
Diffstat (limited to 'src/luaconf.js')
-rw-r--r--src/luaconf.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luaconf.js b/src/luaconf.js
index c415a65..7297b28 100644
--- a/src/luaconf.js
+++ b/src/luaconf.js
@@ -14,7 +14,11 @@ const LUAI_MAXSTACK = 1000000;
@@ of a function in debug information.
** CHANGE it if you want a different size.
*/
-const LUA_IDSIZE = 60
+const LUA_IDSIZE = 60;
+
+const lua_numbertointeger = function(n) {
+ return n|0;
+};
module.exports.LUAI_MAXSTACK = LUAI_MAXSTACK;
module.exports.LUA_IDSIZE = LUA_IDSIZE; \ No newline at end of file