| 348 | |
| 349 | |
| 350 | LUAMOD_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 |
nothing calls this directly
no test coverage detected