24 lines
394 B
Rust
24 lines
394 B
Rust
|
|
//@ edition: 2024
|
||
|
|
|
||
|
|
#[macro_export]
|
||
|
|
macro_rules! make_macro_with_input {
|
||
|
|
($i:ident) => {
|
||
|
|
macro_rules! macro_inner_input {
|
||
|
|
() => {
|
||
|
|
pub fn $i() {}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#[macro_export]
|
||
|
|
macro_rules! make_macro {
|
||
|
|
() => {
|
||
|
|
macro_rules! macro_inner {
|
||
|
|
() => {
|
||
|
|
pub fn gen() {}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|