mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 05:21:24 +00:00
Add a feature for printing the macro's generated code (#212)
This commit is contained in:
committed by
Alex Crichton
parent
4c27c349ea
commit
50b8842b95
4
crates/macro/src/lib.rs
Normal file → Executable file
4
crates/macro/src/lib.rs
Normal file → Executable file
@ -20,7 +20,9 @@ pub fn wasm_bindgen(attr: TokenStream, input: TokenStream) -> TokenStream {
|
||||
program.push_item(item, Some(opts), &mut ret);
|
||||
program.to_tokens(&mut ret);
|
||||
|
||||
// println!("{}", ret);
|
||||
if cfg!(feature = "xxx_debug_only_print_generated_code") {
|
||||
println!("{}", ret);
|
||||
}
|
||||
|
||||
ret.into()
|
||||
}
|
||||
|
Reference in New Issue
Block a user