MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaL_openlibs

Function luaL_openlibs

extlibs/lua/src/linit.c:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

pmainFunction · 0.85
open_librariesMethod · 0.85

Calls 1

luaL_requirefFunction · 0.70

Tested by

no test coverage detected