Abraxas/ECS C++ Home  Table of Contents 

Module - 78.html

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++.

ECS C++-C Test Suite for Module - 78.cpp

/*

78. Do not define enumerations using macros or integer constants.

*/
#define NUM  1

// BAD don't use macro constants, use enum

int inum = NUM;
static int sinum = NUM;

// BAD also ..

int num = 1;

Abraxas/ECS C++ Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++