tcpp
tcpp copied to clipboard
wrong results for nested macroes
@Andy3531, could you provide any minimal reproducible example?
Example: https://godbolt.org/z/nx7eKvs78
tcpp expands both __LINE__
s before concatenation.
This issue is now being covered by TestProcess_PassMacroIntoFuncMacroWithinAnotherFuncMacro_MacrosExpanded
test, which is failing.
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.