diff options
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/macros.rs b/src/macros.rs index 00a9b529..35e69f2d 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -15,32 +15,12 @@ #[macro_export] macro_rules! die { ($($arg:tt)*) => {{ - err_println!($($arg)*); + eprintln!($($arg)*); ::std::process::exit(1); }} } #[macro_export] -macro_rules! err_println { - ($($arg:tt)*) => {{ - if cfg!(feature = "err-println") { - use std::io::Write; - (writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); - } - }} -} - -#[macro_export] -macro_rules! err_print { - ($($arg:tt)*) => {{ - if cfg!(feature = "err-println") { - use std::io::Write; - (write!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); - } - }} -} - -#[macro_export] macro_rules! maybe { ($option:expr) => { match $option { |