macro_rules! vortex_panic {
(Context: $msg:literal, $err:expr) => { ... };
($fmt:literal $(, $arg:expr)* $(,)?) => { ... };
($err:expr, $fmt:literal $(, $arg:expr)* $(,)?) => { ... };
($err:expr) => { ... };
}Expand description
A convenient macro for panicking with a VortexError in the presence of a programmer error (e.g., an invariant has been violated).
It takes a message like vortex_err!, or an existing error with an optional message to add
as context.