@@ -316,7 +316,7 @@ void Eva::update()
316316// -------------------------------------------------------------------------------------------------
317317EvaMessage Eva::nameToMessage (const AsciiString& name)
318318{
319- DEBUG_ASSERTCRASH ( ELEMENTS_OF ( TheEvaMessageNames ) == EVA_COUNT + 1 , (" TheEvaMessageNames out of sync" ) );
319+ DEBUG_ASSERTCRASH ( ARRAY_SIZE ( TheEvaMessageNames ) == EVA_COUNT + 1 , (" TheEvaMessageNames out of sync" ) );
320320 DEBUG_ASSERTCRASH ( stricmp ( TheEvaMessageNames[ EVA_COUNT ], " EVA_INVALID" ) == 0 , (" TheEvaMessageNames out of sync" ) );
321321 DEBUG_ASSERTCRASH ( stricmp ( TheEvaMessageNames[ EVA_COUNT - 1 ], " EVA_INVALID" ) != 0 , (" TheEvaMessageNames out of sync" ) );
322322
@@ -333,7 +333,7 @@ EvaMessage Eva::nameToMessage(const AsciiString& name)
333333// -------------------------------------------------------------------------------------------------
334334AsciiString Eva::messageToName (EvaMessage message)
335335{
336- DEBUG_ASSERTCRASH ( ELEMENTS_OF ( TheEvaMessageNames ) == EVA_COUNT + 1 , (" TheEvaMessageNames out of sync" ) );
336+ DEBUG_ASSERTCRASH ( ARRAY_SIZE ( TheEvaMessageNames ) == EVA_COUNT + 1 , (" TheEvaMessageNames out of sync" ) );
337337 DEBUG_ASSERTCRASH ( stricmp ( TheEvaMessageNames[ EVA_COUNT ], " EVA_INVALID" ) == 0 , (" TheEvaMessageNames out of sync" ) );
338338 DEBUG_ASSERTCRASH ( stricmp ( TheEvaMessageNames[ EVA_COUNT - 1 ], " EVA_INVALID" ) != 0 , (" TheEvaMessageNames out of sync" ) );
339339
@@ -415,7 +415,7 @@ Bool Eva::messageShouldPlay(EvaMessage messageToTest, UnsignedInt currentFrame)
415415 return FALSE ;
416416 }
417417
418- DEBUG_ASSERTCRASH ( ELEMENTS_OF ( s_shouldPlayFuncs ) == EVA_COUNT + 1 , (" Eva::s_shouldPlayFuncs out of sync" ) );
418+ DEBUG_ASSERTCRASH ( ARRAY_SIZE ( s_shouldPlayFuncs ) == EVA_COUNT + 1 , (" Eva::s_shouldPlayFuncs out of sync" ) );
419419 DEBUG_ASSERTCRASH ( s_shouldPlayFuncs[ EVA_COUNT ] == NULL , (" Eva::s_shouldPlayFuncs out of sync" ) );
420420 DEBUG_ASSERTCRASH ( s_shouldPlayFuncs[ EVA_COUNT - 1 ] != NULL , (" Eva::s_shouldPlayFuncs out of sync" ) );
421421
0 commit comments