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

Function luaopen_table

src/vm/luavm/lua/ltablib.c:350–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349
350LUAMOD_API int luaopen_table (lua_State *L) {
351 luaL_newlib(L, tab_funcs);
352#if defined(LUA_COMPAT_UNPACK)
353 /* _G.unpack = table.unpack */
354 lua_getfield(L, -1, "unpack");
355 lua_setglobal(L, "unpack");
356#endif
357 return 1;
358}
359

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected