- cross-posted to:
- programming@zerobytes.monster
- cross-posted to:
- programming@zerobytes.monster
A short post on how variable names can leak out of macros if there is a name collision with a constant. I thought this was a delightful read!
A short post on how variable names can leak out of macros if there is a name collision with a constant. I thought this was a delightful read!
I understand that the macro only affects compile time but I’m talking about the extra function that’s included in the resulting source code when the macro is expanded during compile. Based on other feedback, it looks like the unused function is optimized away.
Ah yes, exactly.