05-12-2014, 01:51 PM
The MISRA guidelines define "code" in the Glossary as
Therefore "#if (0 == 1) + 1 " is not a violation of rule 10.1
Quote:"Code consists of everything within a translation unit that is not excluded by conditional compilation.. Therefore, the guidelines apply to code after preprocessing directives have been executed, unless otherwise stated in a guideline.
Therefore "#if (0 == 1) + 1 " is not a violation of rule 10.1
Posted by and on behalf of the MISRA C Working Group