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

Function TMap_Values

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

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

Source from the content-addressed store, hash-verified

260 * @see FLuaMap::Values(...)
261 */
262static int32 TMap_Values(lua_State* L)
263{
264 int32 NumParams = lua_gettop(L);
265 if (NumParams != 1)
266 return luaL_error(L, "invalid parameters");
267
268 FLuaMap* Map = (FLuaMap*)(GetCppInstanceFast(L, 1));
269 TMap_Guard(L, Map);
270
271 void* Userdata = NewUserdataWithPadding(L, sizeof(FLuaArray), "TArray");
272 FLuaArray* Array = Map->Values(Userdata);
273 return 1;
274}
275
276/**
277 * GC function

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
GetCppInstanceFastFunction · 0.85
TMap_GuardFunction · 0.85
NewUserdataWithPaddingFunction · 0.85
ValuesMethod · 0.80

Tested by

no test coverage detected