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

Function SetTableForClass

Plugins/UnLua/Source/UnLua/Private/LuaCore.cpp:77–84  ·  view source on GitHub ↗

* Set the name for a Lua table which on the top of the stack */

Source from the content-addressed store, hash-verified

75 * Set the name for a Lua table which on the top of the stack
76 */
77void SetTableForClass(lua_State *L, const char *Name)
78{
79 lua_getglobal(L, "UE");
80 lua_pushstring(L, Name);
81 lua_pushvalue(L, -3);
82 lua_rawset(L, -3);
83 lua_pop(L, 2);
84}
85
86#define USERDATA_MAGIC 0x1688
87#define BIT_VARIANT_TAG (1 << 7) // variant tag for userdata

Callers 3

RegisterCollisionEnumFunction · 0.85
PushMetatableMethod · 0.85
RegisterMethod · 0.85

Calls 4

lua_getglobalFunction · 0.85
lua_pushstringFunction · 0.85
lua_pushvalueFunction · 0.85
lua_rawsetFunction · 0.85

Tested by

no test coverage detected