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

Function luaopen_table

source/extern/lua/ltablib.c:441–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439
440
441LUAMOD_API int luaopen_table (lua_State *L) {
442 luaL_newlib(L, tab_funcs);
443#if defined(LUA_COMPAT_UNPACK)
444 /* _G.unpack = table.unpack */
445 lua_getfield(L, -1, "unpack");
446 lua_setglobal(L, "unpack");
447#endif
448 return 1;
449}
450

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected