Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generalized Question about #12.6 and Preprocessor Directives
#2
While Rule 12.6 doesn't explicitly mention expressions used in preprocessing directlves, it is intended to apply to all expressions.

In considering the question, it seems that there are two omissions from the definition of Boolean expressions in the Glossary (Appendix E), namely:
  • the 'defined' proprocessing operator produces a Boolean-by-construct value
  • a Boolean value is expected as the operand of the #if and #elif directives
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)