Improve ASSERT macro, fix linux file paths in Taskfile and hopefully fix the windows release (#1295)

* ci: fix windows releases (hopefully)

* scripts: fix Taskfile file references for linux

* asserts: add `ASSERT_MSG` macro and ensure `stdout` is flushed before `abort`ing

* asserts: refactor all `assert(false);` with a preceeding message instances

* lint: format

* temp...

* fix compiler errors

* assert: allow for string literals in `ASSERT_MSG`

* lint: formatting

* revert temp change for testing
This commit is contained in:
Tyler Wilding
2022-04-12 18:48:27 -04:00
committed by GitHub
parent b263e33e94
commit c4a92571b2
51 changed files with 187 additions and 226 deletions
@@ -807,8 +807,7 @@ LinkedObjectFile to_linked_object_file(const std::vector<uint8_t>& data,
} else if (header->version == 5) {
link_v5(result, data, name, dts);
} else {
printf("Unsupported version %d\n", header->version);
ASSERT(false);
ASSERT_MSG(false, fmt::format("Unsupported version {}", header->version));
}
return result;