2020-01-05 03:58:42 +01:00
|
|
|
macro_rules! errln {
|
|
|
|
($env:expr) => {
|
2020-03-15 11:22:33 +01:00
|
|
|
writeln!($env.err_mut(), "").context(crate::error::Stderr)
|
2020-01-05 03:58:42 +01:00
|
|
|
};
|
|
|
|
($env:expr, $fmt:expr) => {
|
2020-03-15 11:22:33 +01:00
|
|
|
writeln!($env.err_mut(), $fmt).context(crate::error::Stderr)
|
2020-01-05 03:58:42 +01:00
|
|
|
};
|
|
|
|
($env:expr, $fmt:expr, $($arg:tt)*) => {
|
2020-03-15 11:22:33 +01:00
|
|
|
writeln!($env.err_mut(), $fmt, $($arg)*).context(crate::error::Stderr)
|
2020-01-05 03:58:42 +01:00
|
|
|
};
|
|
|
|
}
|