diff options
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/macros.rs b/src/macros.rs index 97c317b2..eb37d4db 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -23,16 +23,10 @@ macro_rules! die { #[macro_export] macro_rules! err_println { ($($arg:tt)*) => {{ - use std::io::Write; - (writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); - }} -} - -#[macro_export] -macro_rules! err_println { - ($($arg:tt)*) => {{ - use std::io::Write; - (writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); + if cfg!(feature = "err-println") { + use std::io::Write; + (writeln!(&mut ::std::io::stderr(), $($arg)*)).expect("stderr"); + } }} } |