Re:The compiler will optimize that away
by teh_matt on Sunday May 02, 2021 @05:14AM
(#27013605)
I hacked up something similar (https://gitlab.com/mbryant/functiontrace/-/blob/master/src/p...) a while ago. Your variant looks much more useful!
[ Parent
| on HN ]
Re:The compiler will optimize that away
by conradludgate on Sunday May 02, 2021 @07:07AM
(#27014109)
Yeah I'm a big fan of proc-macros. If utilised well, it can do some really great things