12-06-2017, 01:27 PM
Hi,
Should the following raise MISRA C:2012 rule 5.4 ?
#define MACRO(MACRO) MACRO
and more generally:
#define X123456789_123456789_123456789_AA(X123456789_123456789_123456789_AB) f(X123456789_123456789_123456789_AB)
I thought that not since there is no confusion when parameters are substituted because the macro is not active.
Is it right?
Many thanks!
Should the following raise MISRA C:2012 rule 5.4 ?
#define MACRO(MACRO) MACRO
and more generally:
#define X123456789_123456789_123456789_AA(X123456789_123456789_123456789_AB) f(X123456789_123456789_123456789_AB)
I thought that not since there is no confusion when parameters are substituted because the macro is not active.
Is it right?
Many thanks!
<t></t>