News for hackers. Stuff that matters.
Re:Tour of Rust by burfog on Sunday July 12, 2020 @05:06AM (#23810012)
Depending on your preference for macros, run "info m4" or "info cpp" to read the documentation.

You can use both. You can run them more than once, perhaps changing the source with a sed or perl script between passes.

Re:Tour of Rust by kd5bjo on Sunday July 12, 2020 @05:26AM (#23810098)
Native Rust macros are generally preferred, because they prevent a few classes of error that can happen with the purely textual macros cpp and m4 use. In particular, they prevent unpaired delimiters from appearing in the macro expansion and name collisions between the macro implementation and the callsite.