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

Function luaL_openlibs

other_src/lua/src/linit.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

pmainFunction · 0.70
CreateLuaStateFunction · 0.50
createLuaMethod · 0.50
setupLuaEnvMethod · 0.50
LuaRobotMethod · 0.50

Calls 2

lua_pushstringFunction · 0.70
lua_callFunction · 0.70

Tested by

no test coverage detected