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

Function luaL_openlibs

source/extern/lua/linit.c:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

luaL_requirefFunction · 0.85

Tested by

no test coverage detected