2018-01-24 13:09:49 -06:00
|
|
|
macro_rules! m {
|
2018-01-25 08:20:17 -06:00
|
|
|
($expr: expr, $($func: ident)*) => {{
|
2018-01-25 08:06:37 -06:00
|
|
|
let x = $expr;
|
|
|
|
$func(x)
|
|
|
|
}};
|
2018-01-24 13:09:49 -06:00
|
|
|
|
2018-01-25 08:12:18 -06:00
|
|
|
() => {};
|
2018-01-24 13:09:49 -06:00
|
|
|
|
|
|
|
($item: ident) => {
|
|
|
|
mod macro_item {
|
|
|
|
struct $item;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|