MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_openlib

Function luaL_openlib

third-party/lua-5.2.4/src/lauxlib.c:827–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825
826
827LUALIB_API void luaL_openlib (lua_State *L, const char *libname,
828 const luaL_Reg *l, int nup) {
829 luaL_checkversion(L);
830 if (libname) {
831 luaL_pushmodule(L, libname, libsize(l)); /* get/create library table */
832 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */
833 }
834 if (l)
835 luaL_setfuncs(L, l, nup);
836 else
837 lua_pop(L, nup); /* remove upvalues */
838}
839
840#endif
841/* }====================================================== */

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected