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

Function getCountHistory

plugins/workflow.cpp:1503–1518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501}
1502
1503static int getCountHistory(lua_State *L)
1504{
1505 auto token = luaL_checkstring(L, 1);
1506
1507 color_ostream &out = *Lua::GetOutput(L);
1508 update_data_structures(out);
1509
1510 ItemConstraint *icv = get_constraint(out, token, NULL, false);
1511
1512 if (icv)
1513 push_count_history(L, icv);
1514 else
1515 lua_pushnil(L);
1516
1517 return 1;
1518}
1519
1520DFHACK_PLUGIN_LUA_FUNCTIONS {
1521 DFHACK_LUA_FUNCTION(deleteConstraint),

Callers

nothing calls this directly

Calls 4

update_data_structuresFunction · 0.85
get_constraintFunction · 0.85
push_count_historyFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected