Skip to content

Instantly share code, notes, and snippets.

@KeenS
Created December 3, 2016 06:27
Show Gist options
  • Save KeenS/8a83f458c16a7f6f176017d6d1195641 to your computer and use it in GitHub Desktop.
Save KeenS/8a83f458c16a7f6f176017d6d1195641 to your computer and use it in GitHub Desktop.
#![feature(trace_macros)]
macro_rules! add {
($e1: expr, $e2: expr) => {
$e1 + $e2
};
}
fn main() {
trace_macros!(true);
let ret = add!(1, 2);
trace_macros!(false);
println!("{}", ret);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment