| 456 | |
| 457 | |
| 458 | LUAMOD_API int luaopen_table(lua_State *L) { |
| 459 | luaL_newlib(L, tab_funcs); |
| 460 | #if defined(LUA_COMPAT_UNPACK) |
| 461 | /* _G.unpack = table.unpack */ |
| 462 | lua_getfield(L, -1, "unpack"); |
| 463 | lua_setglobal(L, "unpack"); |
| 464 | #endif |
| 465 | return 1; |
| 466 | } |
| 467 |
nothing calls this directly
no test coverage detected