2020-02-05 04:59:06 +01:00
|
|
|
macro_rules! outln {
|
|
|
|
($env:expr) => {
|
2020-03-15 11:22:33 +01:00
|
|
|
writeln!($env.out_mut(), "").context(crate::error::Stdout)
|
2020-02-05 04:59:06 +01:00
|
|
|
};
|
|
|
|
($env:expr, $fmt:expr) => {
|
2020-03-15 11:22:33 +01:00
|
|
|
writeln!($env.out_mut(), $fmt).context(crate::error::Stdout)
|
2020-02-05 04:59:06 +01:00
|
|
|
};
|
|
|
|
($env:expr, $fmt:expr, $($arg:tt)*) => {
|
2020-03-15 11:22:33 +01:00
|
|
|
writeln!($env.out_mut(), $fmt, $($arg)*).context(crate::error::Stdout)
|
2020-02-05 04:59:06 +01:00
|
|
|
};
|
|
|
|
}
|