fd/src/error.rs

11 lines
233 B
Rust
Raw Normal View History

2020-04-03 11:41:22 +02:00
macro_rules! print_error {
($($arg:tt)*) => (eprintln!("[fd error]: {}", format!($($arg)*)))
}
macro_rules! print_error_and_exit {
($($arg:tt)*) => {
print_error!($($arg)*);
::std::process::exit(1);
};
}