A
Ark
Hello, NG,
Please, help on this snippet:
#define CAT(a,b) a##b
#define COMMENT CAT(/,/)
COMMENT This is a comment
Should it compile?
It passes MS C/C++ 13.0 (Visual Studio 2002) and fails IAR ARM
compiler.
IAR claims that comments should not be processed after macro
expansion, so I have an odd situation where the preprocessor output is
as intended and is compilable, whereas the original file is not.
What is the truth, according to the standard(s)?
(I myself can read but cannot parse 'em
Thank you very much,
Ark
Please, help on this snippet:
#define CAT(a,b) a##b
#define COMMENT CAT(/,/)
COMMENT This is a comment
Should it compile?
It passes MS C/C++ 13.0 (Visual Studio 2002) and fails IAR ARM
compiler.
IAR claims that comments should not be processed after macro
expansion, so I have an odd situation where the preprocessor output is
as intended and is compilable, whereas the original file is not.
What is the truth, according to the standard(s)?
(I myself can read but cannot parse 'em
Thank you very much,
Ark