* @see FLuaArray::Remove(...) */
| 196 | * @see FLuaArray::Remove(...) |
| 197 | */ |
| 198 | static int32 TArray_Remove(lua_State* L) |
| 199 | { |
| 200 | int32 NumParams = lua_gettop(L); |
| 201 | if (NumParams != 2) |
| 202 | return luaL_error(L, "invalid parameters"); |
| 203 | |
| 204 | FLuaArray* Array = (FLuaArray*)(GetCppInstanceFast(L, 1)); |
| 205 | TArray_Guard(L, Array); |
| 206 | |
| 207 | int32 Index = lua_tointeger(L, 2); |
| 208 | --Index; |
| 209 | Array->Remove(Index); |
| 210 | return 0; |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * @see FLuaArray::RemoveItem(...) |
nothing calls this directly
no test coverage detected