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

Method AssociateId

library/LuaWrapper.cpp:1457–1466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1455static void RenderTypeChildren(lua_State *state, const std::vector<const compound_identity*> &children);
1456
1457void LuaWrapper::AssociateId(lua_State *state, int table, int val, const char *name)
1458{
1459 lua_pushinteger(state, val);
1460 lua_pushstring(state, name);
1461 lua_dup(state);
1462 lua_pushinteger(state, val);
1463
1464 lua_rawset(state, table);
1465 lua_rawset(state, table);
1466}
1467
1468static void FillEnumKeys(lua_State *state, int ix_meta, int ftable, enum_identity *eid)
1469{

Callers

nothing calls this directly

Calls 4

lua_pushintegerFunction · 0.85
lua_pushstringFunction · 0.85
lua_dupFunction · 0.85
lua_rawsetFunction · 0.85

Tested by

no test coverage detected