2024-02-16 14:02:50 -06:00
|
|
|
//@ force-host
|
|
|
|
//@ no-prefer-dynamic
|
2023-09-24 15:24:33 -05:00
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
|
|
|
use proc_macro::{TokenStream, TokenTree};
|
|
|
|
|
|
|
|
#[proc_macro]
|
|
|
|
pub fn print_tokens(input: TokenStream) -> TokenStream {
|
|
|
|
println!("{:#?}", input);
|
|
|
|
for token in input {
|
|
|
|
println!("{token}");
|
|
|
|
}
|
|
|
|
TokenStream::new()
|
|
|
|
}
|