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

Function mapify

library/LuaApi.cpp:4368–4373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4366}
4367
4368static std::map<const char *, std::map<string, uint32_t>> mapify(std::map<const char *, std::unordered_map<string, uint32_t>> in_map) {
4369 std::map<const char *, std::map<string, uint32_t>> out_map;
4370 for (auto [k, v] : in_map)
4371 out_map[k].insert(v.begin(), v.end());
4372 return out_map;
4373}
4374
4375static int internal_getPerfCounters(lua_State *L) {
4376 auto & core = Core::getInstance();

Callers 1

internal_getPerfCountersFunction · 0.85

Calls 3

insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected