* @see FLuaSet::Add(...) */
| 62 | * @see FLuaSet::Add(...) |
| 63 | */ |
| 64 | static int32 TSet_Add(lua_State* L) |
| 65 | { |
| 66 | int32 NumParams = lua_gettop(L); |
| 67 | if (NumParams != 2) |
| 68 | return luaL_error(L, "invalid parameters"); |
| 69 | |
| 70 | FLuaSet* Set = (FLuaSet*)(GetCppInstanceFast(L, 1)); |
| 71 | TSet_Guard(L, Set); |
| 72 | |
| 73 | Set->ElementInterface->Initialize(Set->ElementCache); |
| 74 | Set->ElementInterface->Write(L, Set->ElementCache, 2); |
| 75 | Set->Add(Set->ElementCache); |
| 76 | Set->ElementInterface->Destruct(Set->ElementCache); |
| 77 | return 0; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * @see FLuaSet::Remove(...) |
nothing calls this directly
no test coverage detected