Package Index  Table of Contents

CodeCheck ECS C/C++ to Test Suite - 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;

Package Index  Table of Contents

CodeCheck Copyright (c) 1988-2005 by Abraxas Software Inc. (R). All rights reserved.