summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 08:59:35 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 10:40:04 +0100
commit567e12ce3f1ef413afa510cb583d6ac8442a7a4a (patch)
treea1911e7291e917de549bbdd2dead60aa513af87f /src/lauxlib.js
parent7c459409b078e38da07e2570a77945fdc0f55c2c (diff)
downloadfengari-567e12ce3f1ef413afa510cb583d6ac8442a7a4a.tar.gz
fengari-567e12ce3f1ef413afa510cb583d6ac8442a7a4a.tar.bz2
fengari-567e12ce3f1ef413afa510cb583d6ac8442a7a4a.zip
coroutines
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 29b223f..a04f3be 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -310,6 +310,11 @@ const luaL_checkstack = function(L, space, msg) {
}
};
+const luaL_newlib = function(L, l) {
+ lapi.lua_createtable(L);
+ luaL_setfuncs(L, l, 0);
+};
+
module.exports.luaL_newstate = luaL_newstate;
module.exports.luaL_typename = luaL_typename;
module.exports.luaL_checkany = luaL_checkany;
@@ -331,4 +336,5 @@ module.exports.luaL_optinteger = luaL_optinteger;
module.exports.luaL_opt = luaL_opt;
module.exports.luaL_where = luaL_where;
module.exports.luaL_error = luaL_error;
-module.exports.luaL_argerror = luaL_argerror; \ No newline at end of file
+module.exports.luaL_argerror = luaL_argerror;
+module.exports.luaL_newlib = luaL_newlib; \ No newline at end of file