macro_rules! error {
($self:ident, $fmt_str:literal) => { ... };
($self:ident, $fmt_str:literal, $($args:expr),*) => { ... };
}Expand description
A simple macro which is compatible with Rust’s format syntax used in macros like print!,
println!, and format!.
Prints a panic to the logger and causes a crash.
§Note
The first argument should be self.