mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user