Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 14.3 and preprocessor constants
#2
As the rules stand, your example violates both rules 14.3 and 2.2.

The rules covering invariant controlling expressions (rule 14.3) and subsequent dead code (rule 2.2) in macro definitions are currently being reviewed by the MISRA C Working Group.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread
RE: Rule 14.3 and preprocessor constants - by misra-c - 27-11-2021, 11:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)