MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_metafield

Function get_metafield

library/LuaTypes.cpp:429–433  ·  view source on GitHub ↗

Resolve the field in the metatable and return

Source from the content-addressed store, hash-verified

427
428// Resolve the field in the metatable and return
429static int get_metafield(lua_State *state)
430{
431 lua_rawget(state, UPVAL_METATABLE);
432 return 1;
433}
434
435static void *find_field(lua_State *state, int index, const char *mode)
436{

Callers 2

find_fieldFunction · 0.85
lookup_container_fieldFunction · 0.85

Calls 1

lua_rawgetFunction · 0.85

Tested by

no test coverage detected