use ARRAYSIZE macro

This commit is contained in:
Chris Danford
2003-08-02 20:05:46 +00:00
parent f8e4fc2d9c
commit e892ecc027
6 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ const char NAME_CHARS[] =
{
' ',' ',' ',' ','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'
};
#define NUM_NAME_CHARS (sizeof(NAME_CHARS)/sizeof(char))
#define NUM_NAME_CHARS (ARRAYSIZE(NAME_CHARS))
#define HEIGHT_OF_ALL_CHARS (NUM_NAME_CHARS * g_fCharsSpacingY)