Macro with literal values
examples/macros/macro-literal-values/src/main.rs
macro_rules! make { (say hi) => { println!("Say hi!") }; (do something) => { println!("do something") }; } fn main() { make!(say hi); make!(do something); }
macro_rules! make { (say hi) => { println!("Say hi!") }; (do something) => { println!("do something") }; } fn main() { make!(say hi); make!(do something); }