![]() |
![]() |
0885 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.8.1 Conditional Inclusion - Semantics | ||||||
The expansion of this macro includes the token 'defined' - a preprocessing operator. This is not permitted. For example:
/*PRQA S 553,2017,3211,3408,3452 ++*/
#define MAC !defined(X)
#if defined (X) /* OK */
int x;
#endif
#if (MAC) /* Message 0885 */
long x;
#endif
MISRA C:2012 Rules applicable to message 0885:
| Rule-1.3 (Required) | There shall be no occurrence of undefined or critical unspecified behaviour |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |