09-05-2007, 05:32 PM
Your restatement of the rule as follows is correct.
We have used the term macro identifier to refer to macro names - see ISO 6.1.2
Quote:All identifiers used in the controlling constant expression of #if or #elif preprocessing directives shall be #defined before use, unless the identifier is an operand of the defined() operator.
We have used the term macro identifier to refer to macro names - see ISO 6.1.2
Posted by and on behalf of the MISRA C Working Group