The UNREACHABLE
macro was suggested in #24812, but during reviewing it has been dropped:
This is unused and on a second thought I wonder if there is any value in it. The current code can already use
assert(false)
just fine. Introducing another way to writeassert(false)
will just lead to bike-shedding without any benefit.
This macro prevents compiler warnings – -Wreturn-type
(GCC) and C4715
(MSVC) – when building for/on Windows.