3 ms·
Examples from this article[1] frequently yield inconsistent result across implementations, particularly the ones that put parenthesis in macros, it is indeed a
by fuhsnn 11mo ago
Examples from this article[1] frequently yield inconsistent result across implementations, particularly the ones that put parenthesis in macros, it is indeed a very corner-case-y thing to do though.
[1] https://www.scs.stanford.edu/~dm/blog/va-opt.html#c-macro-overview https://www.scs.stanford.edu/~dm/blog/va-opt.html#c-macro-ov...
- viega 11mo agoFrom my read, that article doesn't have anything in it that isn't standards compliant C. My memory is getting worse as I get older, but I'd say by C17 all that was standard, and definitely in C23. I've noticed many people are still building on systems where the compiler is a bit older, and defaults to C11, even if it has support for C17, so perhaps that's the problem?