Cleanup C++ headers

This commit is contained in:
topjohnwu
2025-06-16 02:25:38 -07:00
parent 12340c9bd5
commit 1460317ebd
20 changed files with 14 additions and 48 deletions

View File

@@ -43,6 +43,11 @@ static size_t restore(int fd, const char *filename) {
return size;
}
static bool check_env(const char *name) {
const char *val = getenv(name);
return val != nullptr && val == "true"sv;
}
void dyn_img_hdr::print() const {
uint32_t ver = header_version();
fprintf(stderr, "%-*s [%u]\n", PADDING, "HEADER_VER", ver);