21-05-2008, 09:15 AM
Code:
#define SUM(A,B,C) ((A) + (B) + (C)) /* Violates Rule 17.4 */
Code:
mc2_1909_s16a = SUM( 5,
#ifdef SW
mc2_1909_s16b,
#else
mc2_1909_s16c,
#endif
0 );
Posted by and on behalf of the MISRA C Working Group