Created
December 3, 2016 06:27
-
-
Save KeenS/8a83f458c16a7f6f176017d6d1195641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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