I'm trying to create a custom crash! macro that essentially just wraps eprintln!, but it could be any other format!-like macro. It currently looks like this.
macro_rules! crash {
($fmt_str:literal, $($args:expr),*) => {{
eprintln!($fmt_str, $args);
std::process::exit(1);
}};
}
I can't use $args directly as it's still repeating, so I need some way to break it apart, but I'm not sure how to do that.