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

Function TSet_Clear

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_Set.cpp:123–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

121 * @see FLuaSet::Clear(...)
122 */
123static int32 TSet_Clear(lua_State* L)
124{
125 int32 NumParams = lua_gettop(L);
126 if (NumParams != 1)
127 return luaL_error(L, "invalid parameters");
128
129 FLuaSet* Set = (FLuaSet*)(GetCppInstanceFast(L, 1));
130 TSet_Guard(L, Set);
131
132 Set->Clear();
133 return 0;
134}
135
136/**
137 * @see FLuaSet::ToArray(...)

Callers

nothing calls this directly

Calls 5

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
GetCppInstanceFastFunction · 0.85
TSet_GuardFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected