You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 7I love this question (and how you've asked it). I ain't gonna submit an answer here, but I am very suspicious of the idea of "recursive" function-like macro resolution. That thing where you expect two macros to product text that looks like another function-like macro and then expect it to be itself evaluated seems like... one too manyBen Zotto– Ben Zotto2021-03-12 04:00:58 +00:00Commented Mar 12, 2021 at 4:00
- 5This may fall under §6.10.3.4/p4 which says, "There are cases where it is not clear whether a replacement is nested or not." and later concludes with "Strictly conforming programs are not permitted to depend on such unspecified behavior."user3386109– user33861092021-03-12 04:32:48 +00:00Commented Mar 12, 2021 at 4:32
- 6@user3386109 Indeed 6.10.3.4 paints a pretty good picture: "[...] the resulting preprocessing token sequence is rescanned [...], for more macro names to replace. If the name of the macro being replaced is found during this scan of the replacement list [...], it is not replaced. Furthermore, if any nested replacements encounter the name of the macro being replaced, it is not replaced."...Luiz Martins– Luiz Martins2021-03-12 04:52:29 +00:00Commented Mar 12, 2021 at 4:52
- 5..."These nonreplaced macro name preprocessing tokens are no longer available for further replacement even if they are later (re)examined in contexts in which that macro name preprocessing token would otherwise have been replaced."Luiz Martins– Luiz Martins2021-03-12 04:53:34 +00:00Commented Mar 12, 2021 at 4:53
- 3Taking hundreds of lines of code and turning it into an MWE consisting of half a dozen or fewer lines shouldn't be too uncommon.Bernhard Barker– Bernhard Barker2021-03-12 12:58:39 +00:00Commented Mar 12, 2021 at 12:58
| Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-c