![]() |
|
MISRA C:2012 Rule-20.13: (Required) |
|
||||
![]() | |||||||
Amplification:
White-space is permitted between the # and preprocessing tokens.
Example Code:
#include "misra.h"
#include "m3cmex.h"
#define N 1
extern int16_t rule_2013( void )
{
int16_t x = 0;
#ifndef N
x = 0;
/* Note misspelling below */
#alse /* 3115 */
x = 2;
#endif
return x;
}
QAC messages that encompass this guideline:
| 3115 | Unrecognized preprocessing directive has been ignored because of conditional inclusion directives. |
|
||
(c) The Motor Industry Research Association, 2012
|
QA C Source Code Analyser 8.1.2
MISRA C:2012 Compliance Module 1.0 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |