/* >>>------------------------------------------------------------ * * File: rule_19.14.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 19.14 (Required): * The defined preprocessor operator shall only be used in one of * the two standard forms. * * Implemented by messages: * 885 [U] The token 'defined' is generated in the expansion of * this macro. * * 887 [U] Use of 'defined' must match either * 'defined(identifier)' or 'defined identifier'. * * 888 [U] 'defined' requires an identifier as an argument. * * <<<------------------------------------------------------------ */ #include "misra.h" #include "m2cmex.h" #define ID #define MAC (!defined(X)) #if !defined ID #endif #if defined /* MISRA Violation */ #endif #if defined (1) /* MISRA Violation */ #endif #if (MAC) /* MISRA Violation */ #endif extern S16 test_1914( void ) { return 1; }