mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 17:35:16 +01:00
11 lines
233 B
Rust
11 lines
233 B
Rust
|
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);
|
||
|
};
|
||
|
}
|