MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_openlib

Function luaL_openlib

freebsd/contrib/openzfs/module/lua/lauxlib.c:683–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681
682
683LUALIB_API void luaL_openlib (lua_State *L, const char *libname,
684 const luaL_Reg *l, int nup) {
685 luaL_checkversion(L);
686 if (libname) {
687 luaL_pushmodule(L, libname, libsize(l)); /* get/create library table */
688 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */
689 }
690 if (l)
691 luaL_setfuncs(L, l, nup);
692 else
693 lua_pop(L, nup); /* remove upvalues */
694}
695
696#endif
697/* }====================================================== */

Callers

nothing calls this directly

Calls 4

luaL_pushmoduleFunction · 0.85
libsizeFunction · 0.70
lua_insertFunction · 0.70
luaL_setfuncsFunction · 0.70

Tested by

no test coverage detected