25-07-2008, 09:45 AM
Rule 19.16 of MISRA C2 requires "In particular, ensure that #else and #endif directives are not followed by any characters other than white-space."
Does this rule apply to the end of the line or just the character following the 'e' or 'f'.
e.g.
vs
vs
Which of these is allowed / preferred / not allowed by MISRA C
Jonathan
Does this rule apply to the end of the line or just the character following the 'e' or 'f'.
e.g.
Code:
#endif
/* header file exclusion */
Code:
#endif /* header file exclusion */
Code:
#endif/*header file exclusion */
Which of these is allowed / preferred / not allowed by MISRA C
Jonathan
<t></t>