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