Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MISRA C:2004 rule 19.4 / extension
#2
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.
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)