ghdl: list all releases

This commit is contained in:
ITotalJustice
2025-07-21 11:23:43 +01:00
parent faf77d8212
commit a9d3734117
3 changed files with 151 additions and 99 deletions

View File

@@ -66,6 +66,8 @@ private:
void Sort();
void UpdateSubheading();
void DownloadEntries();
private:
std::vector<Entry> m_entries{};
s64 m_index{};

View File

@@ -142,3 +142,18 @@ constexpr auto cexprHash(const char *str, std::size_t v = 0) noexcept -> std::si
__VA_ARGS__ \
} \
}
#define JSON_ARR_ITR(member) \
if (!yyjson_is_arr(json)) { \
return; \
} \
const auto arr_size = yyjson_arr_size(json); \
if (!arr_size) { \
return; \
} \
member.resize(arr_size); \
size_t idx, max; \
yyjson_val *hit; \
yyjson_arr_foreach(json, idx, max, hit) { \
from_json(hit, member[idx]); \
}