* @see FLuaSet::Contains(...) */
| 101 | * @see FLuaSet::Contains(...) |
| 102 | */ |
| 103 | static int32 TSet_Contains(lua_State* L) |
| 104 | { |
| 105 | int32 NumParams = lua_gettop(L); |
| 106 | if (NumParams != 2) |
| 107 | return luaL_error(L, "invalid parameters"); |
| 108 | |
| 109 | FLuaSet* Set = (FLuaSet*)(GetCppInstanceFast(L, 1)); |
| 110 | TSet_Guard(L, Set); |
| 111 | |
| 112 | Set->ElementInterface->Initialize(Set->ElementCache); |
| 113 | Set->ElementInterface->Write(L, Set->ElementCache, 2); |
| 114 | bool bSuccess = Set->Contains(Set->ElementCache); |
| 115 | Set->ElementInterface->Destruct(Set->ElementCache); |
| 116 | lua_pushboolean(L, bSuccess); |
| 117 | return 1; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * @see FLuaSet::Clear(...) |
nothing calls this directly
no test coverage detected