[previous] MISRA C:2012  Rule-20.5:  (Advisory) [next] #undef should not be used

Example Code:


#include "misra.h"
#include "m3cmex.h"

extern int16_t rule_2005( void )
{
    return 1;
}

#define  L      0
#undef   L                                      /* 0841 */


QAC messages that encompass this guideline:

0841 Using '#undef'.



(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