[previous] 0836 [next] [U] Definition of macro named 'defined'.
Explicitly undefined REFERENCE - ISO:C90-6.8.8 Predefined Macro Names

You have attempted to #define a macro called 'defined'. The token 'defined' is a preprocessor operator; it can never be redefined or undefined.

For example:


/*PRQA S 0553,2017 ++*/

#define defined !defined               /* Message 0836 */


MISRA C:2012 Rules applicable to message 0836:

Rule-1.3  (Required) There shall be no occurrence of undefined or critical unspecified behaviour
Rule-21.1  (Required) #define and #undef shall not be used on a reserved identifier or reserved macro name


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