Sujet : Re: errno (was Re: C23 thoughts and opinions - why so conservative?)
De : cr88192 (at) *nospam* gmail.com (BGB)
Groupes : comp.lang.cDate : 28. May 2024, 07:31:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v33tob$fsul$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
On 5/27/2024 9:48 PM, Lawrence D'Oliveiro wrote:
On Sun, 26 May 2024 18:12:17 +0200, David Brown wrote:
Macros in C are not recursive. That stops them exploding, but also means
there's a lot you can't do with the preprocessor.
String-based macros + recursive substitution = recipe for trouble.
It seems the preprocessor in BGBCC is likely not entirely conformant in this case...
If given a recursive macro, it will most likely just explode and probably crash the compiler...
Mostly as it handles macro-expansion by looping over the line and performing macro-substitutions until no more substitutions are seen, at which point it emits the line to the output buffer and moves on to the next line.