MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaL_openlibs

Function luaL_openlibs

depends/lua/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 2

OpenMethod · 0.85
pmainFunction · 0.85

Calls 1

luaL_requirefFunction · 0.85

Tested by

no test coverage detected