Skip to content

Instantly share code, notes, and snippets.

@killercup
Last active January 20, 2017 18:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save killercup/3814f433036134ec6c4f242912eeb3c9 to your computer and use it in GitHub Desktop.
gracefully_hysteria
macro_rules! graceful_hysteria {
($($stuff:tt)*) => {
{
use std::io::Write;
let _ = writeln!(::std::io::stderr(), $($stuff)*);
::std::process::exit(1);
}
}
}
fn main() {
graceful_hysteria!("{}", 42)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment