Macro spanquist::spanquist
[−]
[src]
macro_rules! spanquist { (fn main() $body: block) => { ... }; }
Wrap your the main function of your application with this macro to have it stop after a random period of time of up to an hour.
#[macro_use] extern crate spanquist; use std::time; use std::thread; spanquist! { fn main() { loop { println!("Hello, world!"); thread::sleep(time::Duration::from_millis(1000)); } }}
Any resulting hilarity, chaos or straight out murder is your sole responsibility.