replace ASSERT(0) with useful fail messages

This commit is contained in:
Devin J. Pohly
2012-12-27 16:59:35 -05:00
parent 376056a0cf
commit bd0e2074ad
71 changed files with 289 additions and 245 deletions
+3 -3
View File
@@ -762,7 +762,8 @@ void MusicWheel::BuildWheelItemDatas( vector<MusicWheelItemData *> &arrayWheelIt
FOREACH_ENUM( CourseType, i )
vct.push_back( i );
break;
default: ASSERT(0); break;
default:
FAIL_M(ssprintf("Wrong sort order: %i", so));
}
vector<Course*> apCourses;
@@ -1139,8 +1140,7 @@ void MusicWheel::UpdateSwitch()
}
break;
default:
ASSERT(0); // all state changes should be handled explicitly
break;
FAIL_M(ssprintf("Invalid wheel state: %i", m_WheelState));
}
}