![]() |
|
MISRA-C:2004 Rule 19.11: (Required) |
|
||||
![]() | |||||||
For example:
#if x < 0/* x assumed to be zero if not defined */
Consideration should be given to the use of a #ifdef test before an identifier is used.
Note that preprocessing identifiers may be defined either by use of #define directives or by options specified at compiler invocation. However the use of the #define directive is preferred.
QAC messages that encompass this guideline:
| 3332 | The macro '%s' used in this '#if' or '#elif' expression is not defined. |
|
||
(c) The Motor Industry Research Association, 2004
|
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |