27-11-2021, 11:00 AM
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.
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