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

Function luaL_openlibs

third-party/lua-5.3.5/src/linit.c:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60LUALIB_API void luaL_openlibs (lua_State *L) {
61 const luaL_Reg *lib;
62 /* "require" functions from 'loadedlibs' and set results to global table */
63 for (lib = loadedlibs; lib->func; lib++) {
64 luaL_requiref(L, lib->name, lib->func, 1);
65 lua_pop(L, 1); /* remove lib */
66 }
67}
68

Callers 1

pmainFunction · 0.70

Calls 1

luaL_requirefFunction · 0.70

Tested by

no test coverage detected