Hew more closely to the C17 standard; perform macro replacement
of arguments to function-like macros unless they're being stringified
(if that's a word) or pasted. Test with a model "assert" macro idiom that
exposed the problem.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is this a documented assert idiom? Wouldn't macro expansion occur if STR(x) did not immediately apply the stringification (but instead expanded to an invocation of another macro)?
Comment Actions
Fix was wrong -- it masked the actual problem rather than solving it. Here's a second take.