intermodal/src/errln.rs

12 lines
321 B
Rust
Raw Normal View History

macro_rules! errln {
($env:expr) => {
writeln!($env.err, "").context(crate::error::Stderr)?;
};
($env:expr, $fmt:expr) => {
writeln!($env.err, $fmt).context(crate::error::Stderr)?;
};
($env:expr, $fmt:expr, $($arg:tt)*) => {
writeln!($env.err, $fmt, $($arg)*).context(crate::error::Stderr)?;
};
}