* @see FLuaSet::Remove(...) */
| 81 | * @see FLuaSet::Remove(...) |
| 82 | */ |
| 83 | static int32 TSet_Remove(lua_State* L) |
| 84 | { |
| 85 | int32 NumParams = lua_gettop(L); |
| 86 | if (NumParams != 2) |
| 87 | return luaL_error(L, "invalid parameters"); |
| 88 | |
| 89 | FLuaSet* Set = (FLuaSet*)(GetCppInstanceFast(L, 1)); |
| 90 | TSet_Guard(L, Set); |
| 91 | |
| 92 | Set->ElementInterface->Initialize(Set->ElementCache); |
| 93 | Set->ElementInterface->Write(L, Set->ElementCache, 2); |
| 94 | bool bSuccess = Set->Remove(Set->ElementCache); |
| 95 | Set->ElementInterface->Destruct(Set->ElementCache); |
| 96 | lua_pushboolean(L, bSuccess); |
| 97 | return 1; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * @see FLuaSet::Contains(...) |
nothing calls this directly
no test coverage detected