Re:Rust and C++ Interoperability in Chrome
by Arnavion on Wednesday August 19, 2020 @02:56PM
(#24214578)
A proc macro would still need to be invoked as either
or
The former can be written even with a macro_rules macro. Regardless, both macros have to work by parsing the whole input tokentree `fn foo ( ) { ... }` and emitting it back with an `unsafe` prepended. The macro invocation cannot expand to just `unsafe`.
[ Parent
| on HN ]
Re:Rust and C++ Interoperability in Chrome
by steveklabnik on Wednesday August 19, 2020 @04:35PM
(#24216039)
Yes, this is what I was meaning, thank you.