Macro Subspace :: sus_unreachable
Indicates to the developer that the location should not be reached, and
terminates the program with a panic
.
This is similar to std::unreachable!
in Rust,
and in the default build configuration will print an error message
indicating the location where the panic occurred.
Note that this is not the same as std::unreachable
in C++ which is
Undefined Behaviour if reached. It is closer to std::abort
except built on
top of sus_panic
.
The Subspace library matches the safer behaviour of Rust to avoid confusion
and security bugs when working across languages. Use
sus_unreachable_unchecked
to
indicate to the compiler the code is not reachable.