macro_rules! tt_debug { { $( $output:ident = [{ $($tokens:tt)* }] )* } => { ... }; }
Expand description
Print arbitrary output values returned by a tt-call macro. This is valuable for debugging. [tt-call]
§Example
use tt_call::{parse_type, tt_call, tt_debug};
fn main() {
tt_call! {
macro = [{ parse_type }]
input = [{ Vec<u8>, compressed=false }]
~~> tt_debug
}
}
The output is:
type = [{ Vec < u8 > }]
rest = [{ , compressed = false }]