cmake update

This commit is contained in:
Markus F.X.J. Oberhumer
2024-03-26 15:38:20 +01:00
parent a27a9e6000
commit 3ba91b8072
8 changed files with 57 additions and 36 deletions
+7 -5
View File
@@ -96,16 +96,18 @@ void show_usage(void) {
namespace {
struct PackerNames {
PackerNames() noexcept = default;
~PackerNames() noexcept = default;
struct Entry {
const char *fname;
const char *sname;
};
Entry names[64];
size_t names_count;
const Options *o;
PackerNames() : names_count(0), o(nullptr) {}
static constexpr size_t MAX_NAMES = 64;
Entry names[MAX_NAMES];
size_t names_count = 0;
const Options *o = nullptr;
void add(const PackerBase *pb) {
assert_noexcept(names_count < 64);
assert_noexcept(names_count < MAX_NAMES);
names[names_count].fname = pb->getFullName(o);
names[names_count].sname = pb->getName();
names_count++;