Compare commits

...

1 Commits

Author SHA1 Message Date
Martin Hořeňovský
6146a104b8 WIP: unreachable? 2024-12-27 23:46:25 +01:00
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/internal/catch_unreachable.hpp>
namespace Catch {
namespace Detail {
void unreachable(){}
}
} // end namespace Catch

View File

@@ -0,0 +1,21 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#ifndef CATCH_UNREACHABLE_HPP_INCLUDED
#define CATCH_UNREACHABLE_HPP_INCLUDED
namespace Catch {
namespace Detail {
// TODO: explain
[[noreturn]] void unreachable();
}
} // end namespace Catch
#endif // CATCH_UNREACHABLE_HPP_INCLUDED