| 60 | |
| 61 | |
| 62 | static int tcreate (lua_State *L) { |
| 63 | lua_Unsigned sizeseq = (lua_Unsigned)luaL_checkinteger(L, 1); |
| 64 | lua_Unsigned sizerest = (lua_Unsigned)luaL_optinteger(L, 2, 0); |
| 65 | luaL_argcheck(L, sizeseq <= cast_uint(INT_MAX), 1, "out of range"); |
| 66 | luaL_argcheck(L, sizerest <= cast_uint(INT_MAX), 2, "out of range"); |
| 67 | lua_createtable(L, cast_int(sizeseq), cast_int(sizerest)); |
| 68 | return 1; |
| 69 | } |
| 70 | |
| 71 | |
| 72 | static int tinsert (lua_State *L) { |
nothing calls this directly
no test coverage detected