MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_openlibs

Function luaL_openlibs

app/redis-6.2.6/deps/lua/src/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 1

pmainFunction · 0.85

Calls 2

lua_callFunction · 0.85
lua_pushstringFunction · 0.70

Tested by

no test coverage detected