Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 19.4 -TC1 example incorrect?
#2
This rule applies to the macro replacement list and not the ultimate expansion.

Therefore
Code:
#define CAT PI
is not compliant.

Code:
#define CAT (PI)
is compliant.
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)