File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ // Copyright Catch2 Authors
3+ // Distributed under the Boost Software License, Version 1.0.
4+ // (See accompanying file LICENSE.txt or copy at
5+ // https://www.boost.org/LICENSE_1_0.txt)
6+
7+ // SPDX-License-Identifier: BSL-1.0
8+
9+ #include < catch2/internal/catch_unreachable.hpp>
10+
11+ namespace Catch {
12+ namespace Detail {
13+
14+ void unreachable (){}
15+
16+ }
17+ } // end namespace Catch
Original file line number Diff line number Diff line change 1+
2+ // Copyright Catch2 Authors
3+ // Distributed under the Boost Software License, Version 1.0.
4+ // (See accompanying file LICENSE.txt or copy at
5+ // https://www.boost.org/LICENSE_1_0.txt)
6+
7+ // SPDX-License-Identifier: BSL-1.0
8+ #ifndef CATCH_UNREACHABLE_HPP_INCLUDED
9+ #define CATCH_UNREACHABLE_HPP_INCLUDED
10+
11+ namespace Catch {
12+
13+ namespace Detail {
14+ // TODO: explain
15+ [[noreturn]] void unreachable ();
16+
17+ }
18+
19+ } // end namespace Catch
20+
21+ #endif // CATCH_UNREACHABLE_HPP_INCLUDED
You can’t perform that action at this time.
0 commit comments