macro_rules! dev_panic {
($msg:expr) => { ... };
($msg:expr, or return $result:expr) => { ... };
}
Expand description
Panic in debug or tests, log error/warn in release
macro_rules! dev_panic {
($msg:expr) => { ... };
($msg:expr, or return $result:expr) => { ... };
}
Panic in debug or tests, log error/warn in release