MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaopen_table

Function luaopen_table

src/Chain/libraries/glua/ltablib.cpp:458–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458LUAMOD_API int luaopen_table(lua_State *L) {
459 luaL_newlib(L, tab_funcs);
460#if defined(LUA_COMPAT_UNPACK)
461 /* _G.unpack = table.unpack */
462 lua_getfield(L, -1, "unpack");
463 lua_setglobal(L, "unpack");
464#endif
465 return 1;
466}
467

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected