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!

  • livingcoder@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    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.