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

Function CreateWeakValueTable

Plugins/UnLua/Source/UnLua/Public/LowLevel.cpp:44–52  ·  view source on GitHub ↗

* Create weak value table */

Source from the content-addressed store, hash-verified

42 * Create weak value table
43 */
44 void CreateWeakValueTable(lua_State* L)
45 {
46 lua_newtable(L);
47 lua_newtable(L);
48 lua_pushstring(L, "__mode");
49 lua_pushstring(L, "v");
50 lua_rawset(L, -3);
51 lua_setmetatable(L, -2);
52 }
53
54 FString GetMetatableName(const UObject* Object)
55 {

Callers 3

FLuaEnvMethod · 0.85
FContainerRegistryMethod · 0.85
FObjectRegistryMethod · 0.85

Calls 3

lua_pushstringFunction · 0.85
lua_rawsetFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by

no test coverage detected