Created
August 6, 2015 10:18
-
-
Save Antti/50d3e2308c363fb14e1e to your computer and use it in GitHub Desktop.
rust p macro
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
macro_rules! p { | |
($($e:expr),+) => ({ | |
$( | |
println!("{} = {:?}", stringify!($e), $e); | |
)+ | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment