diff options
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 8 |
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 |