tcpp icon indicating copy to clipboard operation
tcpp copied to clipboard

wrong results for nested macroes

Open Andy3531 opened this issue 1 year ago • 4 comments

Andy3531 avatar Apr 05 '23 10:04 Andy3531

@Andy3531, could you provide any minimal reproducible example?

bnoazx005 avatar Jul 08 '23 17:07 bnoazx005

Example: https://godbolt.org/z/nx7eKvs78 tcpp expands both __LINE__s before concatenation.

tkausl avatar Aug 13 '23 13:08 tkausl

This issue is now being covered by TestProcess_PassMacroIntoFuncMacroWithinAnotherFuncMacro_MacrosExpanded test, which is failing.

dmikushin avatar May 27 '24 07:05 dmikushin

For now nested macros processing doesn't work at all and I don't see an easy solution to fix that. I plan to fix the issue after refactoring of macro expansions algorithm.

bnoazx005 avatar May 27 '24 17:05 bnoazx005