MCPcopy Create free account
hub / github.com/Tencent/UnLua / TArray_Remove

Function TArray_Remove

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_Array.cpp:198–211  ·  view source on GitHub ↗

* @see FLuaArray::Remove(...) */

Source from the content-addressed store, hash-verified

196 * @see FLuaArray::Remove(...)
197 */
198static 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(...)

Callers

nothing calls this directly

Calls 5

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
GetCppInstanceFastFunction · 0.85
TArray_GuardFunction · 0.85
RemoveMethod · 0.45

Tested by

no test coverage detected