mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Tidy up and fix the various Assert macros
Rephrase the macros so that they can be used in expressions, and properly require semicolons. And add the semicolons where missing.
This commit is contained in:
parent
e03c3bb34f
commit
c19a70814c
11 changed files with 40 additions and 44 deletions
|
|
@ -48,7 +48,7 @@ CatmullRomBase::CatmullRomBase()
|
|||
void CatmullRomBase::_initialize( U32 count, const F32 *times )
|
||||
{
|
||||
//AssertFatal( times, "CatmullRomBase::_initialize() - Got null position!" )
|
||||
AssertFatal( count > 1, "CatmullRomBase::_initialize() - Must have more than 2 points!" )
|
||||
AssertFatal( count > 1, "CatmullRomBase::_initialize() - Must have more than 2 points!" );
|
||||
|
||||
// set up arrays
|
||||
mTimes = new F32[count];
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ inline void CatmullRom<TYPE>::clear()
|
|||
template<typename TYPE>
|
||||
inline void CatmullRom<TYPE>::initialize( U32 count, const TYPE *positions, const F32 *times )
|
||||
{
|
||||
AssertFatal( positions, "CatmullRom::initialize - Got null position!" )
|
||||
AssertFatal( count > 1, "CatmullRom::initialize - Must have more than 2 points!" )
|
||||
AssertFatal( positions, "CatmullRom::initialize - Got null position!" );
|
||||
AssertFatal( count > 1, "CatmullRom::initialize - Must have more than 2 points!" );
|
||||
|
||||
// Clean up any previous state.
|
||||
clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue