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

Function GetField

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

* Get a field (property or function) */

Source from the content-addressed store, hash-verified

1063 * Get a field (property or function)
1064 */
1065FORCEINLINE static int32 GetField(lua_State* L)
1066{
1067 lua_getmetatable(L, 1);
1068 lua_pushvalue(L, 2);
1069 int32 Type = lua_rawget(L, -2);
1070 if (Type == LUA_TNIL)
1071 GetFieldInternal(L);
1072 lua_remove(L, -2);
1073 return 1;
1074}
1075
1076/**
1077 * Get collision related enums

Callers 3

Class_IndexFunction · 0.85
Class_NewIndexFunction · 0.85
ScriptStruct_IndexFunction · 0.85

Calls 4

lua_getmetatableFunction · 0.85
lua_pushvalueFunction · 0.85
lua_rawgetFunction · 0.85
GetFieldInternalFunction · 0.85

Tested by

no test coverage detected