Skip to content

Commit

Permalink
Merge pull request #285 from paulsengroup/maintenance/refactor
Browse files Browse the repository at this point in the history
Replace HICTK_UNREACHABLE_CODE macro with hictk::unreachable_code()
  • Loading branch information
robomics authored Oct 10, 2024
2 parents c475568 + ece59da commit b5ad66b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ inline std::streampos FileStream<Mutex>::new_posg(std::streamoff offset, std::io
case std::ios::end:
return static_cast<std::streampos>(_file_size) - offset;
default:
HICTK_UNREACHABLE_CODE;
unreachable_code();
}
}

Expand Down Expand Up @@ -616,7 +616,7 @@ inline std::streampos FileStream<Mutex>::new_posp(std::streamoff offset, std::io
case std::ios::end:
return static_cast<std::streampos>(_file_size) - offset;
default:
HICTK_UNREACHABLE_CODE;
unreachable_code();
}
}
template <typename Mutex>
Expand Down
4 changes: 2 additions & 2 deletions src/libhictk/hic/include/hictk/hic/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct fmt::formatter<hictk::hic::MatrixType> {
case hictk::hic::MatrixType::expected:
return fmt::format_to(ctx.out(), FMT_STRING("expected"));
}
HICTK_UNREACHABLE_CODE;
hictk::unreachable_code();
}
};

Expand All @@ -107,7 +107,7 @@ struct fmt::formatter<hictk::hic::MatrixUnit> {
case hictk::hic::MatrixUnit::FRAG:
return fmt::format_to(ctx.out(), FMT_STRING("FRAG"));
}
HICTK_UNREACHABLE_CODE;
hictk::unreachable_code();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ inline std::shared_ptr<const InteractionBlock> HiCBlockReader::read(const Chromo
read_type2_block<float>(bin1Offset, bin2Offset, _bbuffer, _tmp_buffer);
break;
default:
HICTK_UNREACHABLE_CODE;
unreachable_code();
}

if (!cache_block) {
Expand Down

0 comments on commit b5ad66b

Please sign in to comment.