11-09-2013, 11:03 AM
This example has previously caused much debate within the team!
Under a strict interpretation of the Rules, then MACRO_2 probably should be in braces... but that is clearly unnecessary, probably unintentional, and serves no purpose.
For MISRA C:2012 the ambiguity is removed, and there is no requirement to add the additional parentheses.
Under a strict interpretation of the Rules, then MACRO_2 probably should be in braces... but that is clearly unnecessary, probably unintentional, and serves no purpose.
For MISRA C:2012 the ambiguity is removed, and there is no requirement to add the additional parentheses.
Posted by and on behalf of the MISRA C Working Group