MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaL_openlibs

Function luaL_openlibs

Source/Misc/lua/src/lua.c:12497–12504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12495
12496
12497LUALIB_API void luaL_openlibs (lua_State *L) {
12498const luaL_Reg *lib = lualibs;
12499for (; lib->func; lib++) {
12500lua_pushcfunction(L, lib->func);
12501lua_pushstring(L, lib->name);
12502lua_call(L, 1, 0);
12503}
12504}
12505
12506/*
12507** $Id: lmathlib.c,v 1.67.1.1 2007/12/27 13:02:25 roberto Exp $

Callers 1

createLuaStateMethod · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected