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

Function TMap_Clear

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_Map.cpp:229–240  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

227 * @see FLuaMap::Clear(...)
228 */
229static int32 TMap_Clear(lua_State* L)
230{
231 int32 NumParams = lua_gettop(L);
232 if (NumParams != 1)
233 return luaL_error(L, "invalid parameters");
234
235 FLuaMap* Map = (FLuaMap*)(GetCppInstanceFast(L, 1));
236 TMap_Guard(L, Map);
237
238 Map->Clear();
239 return 0;
240}
241
242/**
243 * @see FLuaMap::Keys(...)

Callers

nothing calls this directly

Calls 5

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
GetCppInstanceFastFunction · 0.85
TMap_GuardFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected