Help on declarative macro

⚓ Rust    📅 2025-12-29    👤 surdeus    👁️ 2      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Help on declarative macro

Help on declarative macro.
I want a macro that takes other macros as input and inside the main macro, expands the other macros and grab their input and use their inputs.
How do I do that
e.g

macro_rules! example {
    (???) => {
        ???
        // use the expanded information and pass it on
    }
}

3 posts - 2 participants

Read full topic

🏷️ Rust_feed