WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
unreachable.hpp
Go to the documentation of this file.
1// Copyright (c) Sleipnir contributors
2
3#pragma once
4
5namespace slp {
6
7[[noreturn]]
8inline void unreachable() {
9#if defined(_MSC_VER) && !defined(__clang__)
10 __assume(false);
11#else
12 __builtin_unreachable();
13#endif
14}
15
16} // namespace slp
Definition expression_graph.hpp:11
void unreachable()
Definition unreachable.hpp:8