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

Function PushTypeIdentity

library/LuaTypes.cpp:1392–1397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390}
1391
1392static void PushTypeIdentity(lua_State *state, const type_identity *id)
1393{
1394 lua_rawgetp(state, LUA_REGISTRYINDEX, &DFHACK_TYPEID_TABLE_TOKEN);
1395 lua_rawgetp(state, -1, id);
1396 lua_remove(state, -2); // TYPEID_TABLE
1397}
1398
1399static void PushFieldInfoSubTable(lua_State *state, const struct_field_info *field)
1400{

Callers 1

PushFieldInfoSubTableFunction · 0.85

Calls 1

lua_rawgetpFunction · 0.85

Tested by

no test coverage detected