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

Function TArray_Clear

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

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

Source from the content-addressed store, hash-verified

234 * @see FLuaArray::Clear(...)
235 */
236static int32 TArray_Clear(lua_State* L)
237{
238 int32 NumParams = lua_gettop(L);
239 if (NumParams != 1)
240 return luaL_error(L, "invalid parameters");
241
242 FLuaArray* Array = (FLuaArray*)(GetCppInstanceFast(L, 1));
243 TArray_Guard(L, Array);
244
245 Array->Clear();
246 return 0;
247}
248
249/**
250 * @see FLuaArray::Reserve(...)

Callers

nothing calls this directly

Calls 5

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
GetCppInstanceFastFunction · 0.85
TArray_GuardFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected