err_exit 0.1.6

Exits process with formatted error message. / 输出格式化错误信息并退出进程。
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![cfg_attr(docsrs, feature(doc_cfg))]

#[macro_export]
macro_rules! err_exit {
  ($($arg:tt)*) => {{
    eprintln!(
      "{}",
      format!($($arg)*)
    );
    std::process::exit(1)
  }};
}