Skip to content

Commit 6146a10

Browse files
committed
WIP: unreachable?
1 parent 506276c commit 6146a10

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

0 commit comments

Comments
 (0)