[previous] 0885 [next] [U] The token 'defined' is generated in the expansion of this macro.
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

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents