HIBF 1.0.0-rc.1
All Classes Namespaces Files Functions Variables Typedefs Friends Macros Modules Pages Concepts
unreachable.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2025, Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2025, Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
12// IWYU pragma: begin_exports
13
14#include <cassert> // for assert
15#include <utility> // for std::unreachable
16
17// IWYU pragma: end_exports
18
19#include <hibf/platform.hpp>
20
21namespace seqan::hibf
22{
23
36#ifndef NDEBUG
37[[noreturn]] inline void unreachable() // GCOVR_EXCL_LINE
38{
39 assert(false); // GCOVR_EXCL_LINE
40}
41#else
42using std::unreachable;
43#endif
44
45} // namespace seqan::hibf
Provides platform and dependency checks.
void unreachable()
Marks unreachable code paths.
Definition unreachable.hpp:37