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

Function luaL_openlibs

engine/lua/src/lua/linit.c:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30LUALIB_API void luaL_openlibs (lua_State *L) {
31 const luaL_Reg *lib = lualibs;
32 for (; lib->func; lib++) {
33 lua_pushcfunction(L, lib->func);
34 lua_pushstring(L, lib->name);
35 lua_call(L, 1, 0);
36 }
37}
38

Callers 3

InitializeFunction · 0.85
TESTFunction · 0.85
pmainFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_callFunction · 0.85

Tested by 1

TESTFunction · 0.68