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