MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaopen_table

Function luaopen_table

freebsd/contrib/openzfs/module/lua/ltablib.c:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272
273
274LUAMOD_API int luaopen_table (lua_State *L) {
275 luaL_newlib(L, tab_funcs);
276#if defined(LUA_COMPAT_UNPACK)
277 /* _G.unpack = table.unpack */
278 lua_getfield(L, -1, "unpack");
279 lua_setglobal(L, "unpack");
280#endif
281 return 1;
282}
283
284#if defined(_KERNEL)
285

Callers 1

zcp_evalFunction · 0.50

Calls 2

lua_setglobalFunction · 0.85
lua_getfieldFunction · 0.70

Tested by

no test coverage detected