![]() |
|
MISRA C:2012 Rule-20.10: (Advisory) |
|
||||
![]() | |||||||
Example Code:
#include "misra.h"
#include "m3cmex.h"
#define STRINGIFY( S ) #S /* 0341 */
#define GLUE( S1, S2 ) S1 ## S2 /* 0342 */
extern int16_t rule_2010( void )
{
const char buf[] = STRINGIFY( MISRA );
int16_t GLUE( ru, le ) = 1;
return 0;
}
QAC messages that encompass this guideline:
| 0341 | Using the stringify operator '#'. |
| 0342 | Using the glue operator '##'. |
|
||
(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 |