| 76 | |
| 77 | |
| 78 | static int setn (lua_State *L) { |
| 79 | luaL_checktype(L, 1, LUA_TTABLE); |
| 80 | #ifndef luaL_setn |
| 81 | luaL_setn(L, 1, luaL_checkint(L, 2)); |
| 82 | #else |
| 83 | luaL_error(L, LUA_QL("setn") " is obsolete"); |
| 84 | #endif |
| 85 | lua_pushvalue(L, 1); |
| 86 | return 1; |
| 87 | } |
| 88 | |
| 89 | |
| 90 | static int tinsert (lua_State *L) { |
nothing calls this directly
no test coverage detected