forked from mirrors/0ad
rename assert2 debug_assert; use instead of all plain assert(), since there are no longer any issues (e.g. can't use while handling an exception)
This was SVN commit r2447.
This commit is contained in:
@@ -70,7 +70,7 @@ jsval SColour::ToString( JSContext* cx, uintN argc, jsval* argv )
|
||||
|
||||
JSBool SColour::Construct( JSContext* cx, JSObject* obj, unsigned int argc, jsval* argv, jsval* rval )
|
||||
{
|
||||
assert( argc >= 3 );
|
||||
debug_assert( argc >= 3 );
|
||||
float alpha = 1.0;
|
||||
if( argc >= 4 ) alpha = ToPrimitive<float>( argv[3] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user