| 1501 | } |
| 1502 | |
| 1503 | static 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 | |
| 1520 | DFHACK_PLUGIN_LUA_FUNCTIONS { |
| 1521 | DFHACK_LUA_FUNCTION(deleteConstraint), |
nothing calls this directly
no test coverage detected