dtolnay / quote

Rust quasi-quoting
Apache License 2.0
1.32k stars 90 forks source link

it is possible to add some macros to all functions in project? #266

Closed 3DRaven closed 12 months ago

3DRaven commented 12 months ago

Hi! Thank you for quote! I need to add some log macros to all functions in project. As example "log" macros to debug and "less log" to release and in this log macros in debug iterate over all arguments of every function and print them every call. It is possible?

It just example some aspect-oriented programming with codegeneration.

Or, as example print all ast of all functions.

Thank you!