MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_openlibs

Function luaL_openlibs

src/Chain/libraries/glua/linit.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

create_lua_stateFunction · 0.85
pmainFunction · 0.85
pmainFunction · 0.85

Calls 1

luaL_requirefFunction · 0.85

Tested by

no test coverage detected