mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-24 02:34:04 +00:00
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:
@@ -82,7 +82,7 @@ JSBool JSI_Entity::setProperty( JSContext* cx, JSObject* obj, jsval id, jsval* v
|
||||
|
||||
JSBool JSI_Entity::construct( JSContext* cx, JSObject* obj, unsigned int argc, jsval* argv, jsval* rval )
|
||||
{
|
||||
assert( argc >= 2 );
|
||||
debug_assert( argc >= 2 );
|
||||
CBaseEntity* baseEntity = NULL;
|
||||
CVector3D position;
|
||||
float orientation = 0.0f;
|
||||
@@ -175,7 +175,7 @@ JSBool JSI_Entity::order( JSContext* cx, JSObject* obj, uintN argc, jsval* argv,
|
||||
HEntity* e = (HEntity*)JS_GetPrivate( cx, obj );
|
||||
|
||||
// This needs to be sorted (uses Scheduler rather than network messaging)
|
||||
assert( argc >= 1 );
|
||||
debug_assert( argc >= 1 );
|
||||
|
||||
int orderCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user