summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-01 17:12:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-01 17:12:30 +0100
commitf6aed5a3ae2e6b2b2eb822deee0a579ca66cd13f (patch)
tree57e711e30549bd86c98ef1004e09808f4cfea2f0 /compat
parentf885f420acba648d8b9b98ee92fd3a994d93c43d (diff)
compat/unreachable: kill it
Diffstat (limited to 'compat')
-rw-r--r--compat/unreachable.hpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/compat/unreachable.hpp b/compat/unreachable.hpp
deleted file mode 100644
index bb029b6d..00000000
--- a/compat/unreachable.hpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#pragma once
-
-namespace floormat {
-
-[[noreturn]] inline void unreachable()
-{
-#if defined __GNUC__
- __builtin_unreachable();
-#elif defined _MSC_VER
- __assume(false);
-#else
- *(volatile int*)0 = 0;
-#endif
-}
-
-} // namespace floormat