From 567e12ce3f1ef413afa510cb583d6ac8442a7a4a Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 23 Feb 2017 08:59:35 +0100 Subject: coroutines --- src/lauxlib.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lauxlib.js') 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 -- cgit v1.2.3-54-g00ecf