| 443 | |
| 444 | |
| 445 | LUAMOD_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 |
no test coverage detected