macro_rules! panic_if_debug {
($($arg:tt)*) => { ... };
}Expand description
Panics if debug_assertions is set, otherwise logs a warning.
Note: unlike panic which returns !, this macro returns (),
which cannot be used like result.unwrap_or_else(|| panic_if_debug!(...)).