summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-16 07:35:26 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-16 07:37:18 +0100
commit3a77114269b53fc57ff00342af18e71f97dcf590 (patch)
treee33feba1afb32d02c1684294362ac74b9e27007f /src/lauxlib.js
parent9d6afeba223c22163928557c69a102877223d3bd (diff)
downloadfengari-3a77114269b53fc57ff00342af18e71f97dcf590.tar.gz
fengari-3a77114269b53fc57ff00342af18e71f97dcf590.tar.bz2
fengari-3a77114269b53fc57ff00342af18e71f97dcf590.zip
luaL_newstate, lua_pushnil, lua_gettop, luaL_typename
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 3ff346e..6cc3d3c 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -18,4 +18,10 @@ const luaL_newstate = function() {
};
-module.exports.luaL_newstate = luaL_newstate; \ No newline at end of file
+const luaL_typename = function(L, i) {
+ return lapi.lua_typename(L, lapi.lua_type(L, i));
+}
+
+
+module.exports.luaL_newstate = luaL_newstate;
+module.exports.luaL_typename = luaL_typename; \ No newline at end of file