![]() |
|
MISRA-C:2004 Rule 19.7: (Advisory) |
|
||||
![]() | |||||||
Example Code:
#include "misra.h"
#include "m2cmex.h"
#define MAX( A, B ) ( ( ( A ) > ( B ) ) ? ( A ) : ( B ) ) /* MISRA Violation */
#define MMAX ( 14 + 32 )
#define HELLO 10
extern S16 test_1907( void )
{
return 1;
}
QAC messages that encompass this guideline:
| 3453 | A function could probably be used instead of this function-like macro. |
|
||
(c) The Motor Industry Research Association, 2004
|
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |