MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaopen_table

Function luaopen_table

libraries/AP_Scripting/lua/src/ltablib.c:445–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

create_sandboxMethod · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected