MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / luaopen_table

Function luaopen_table

Plugins/slua_unreal/External/lua/ltablib.cpp:444–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected