Abraxas/Misra Home  Table of Contents

Module - m93.html

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.

Misra-C Test Suite for Module - m93.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 93: Advisory */

Rule 93: Advisory */

/* A function should be used in preference to a function-like macro */

A function should be used in preference to a function-like macro */
#define SQR ( x ) (  ( x ) * ( x )  ) /*  RULE 93  */
void
func93a ( void ) 



Function Name: func93a()

{
    int i;
	
	i = SQR( 2 );
    
}

Abraxas/Misra Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.