have 'select -count' save the count to scratchpad entry 'select.count'

This commit is contained in:
N. Engelhardt 2022-06-01 14:38:28 +02:00
parent 01cb02c81d
commit a55c3db384
1 changed files with 3 additions and 0 deletions

View File

@ -1456,7 +1456,10 @@ struct SelectPass : public Pass {
}
}
if (count_mode)
{
design->scratchpad_set_int("select.count", total_count);
log("%d objects.\n", total_count);
}
if (f != nullptr)
fclose(f);
#undef LOG_OBJECT