11-12-2007, 10:42 AM
This use of macros requires a deviation to be raised.
Where such use of macros creates clarity, its use is reasonable.
Unconstrained use of macros can create complex code which may lead to unexpected behaviour. This rule attempts to constrain the use of macros to simple contructs. Well designed use of complex macros is possible, and can be justified using a deviation. Examination of the post-processed code is recommended.
The use of macros will be reconsidered for MISRA-C3.
Where such use of macros creates clarity, its use is reasonable.
Unconstrained use of macros can create complex code which may lead to unexpected behaviour. This rule attempts to constrain the use of macros to simple contructs. Well designed use of complex macros is possible, and can be justified using a deviation. Examination of the post-processed code is recommended.
The use of macros will be reconsidered for MISRA-C3.
Posted by and on behalf of the MISRA C Working Group