WIP: unreachable?

This commit is contained in:
Martin Hořeňovský 2024-12-27 23:46:25 +01:00
parent 506276c592
commit 6146a104b8
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
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