Browse Source

Remove NDEBUG markers

rdb 16 years ago
parent
commit
9f229cf4ee

+ 0 - 2
panda/src/ode/odeBody.cxx

@@ -50,11 +50,9 @@ get_joint(int index) const {
 
 void OdeBody::
 write(ostream &out, unsigned int indent) const {
-  #ifndef NDEBUG //[
   out.width(indent); out << "" << get_type() \
                          << "(id = " << _id \
                          << ")";
-  #endif //] NDEBUG
 }
 
 OdeBody::

+ 0 - 2
panda/src/ode/odeGeom.cxx

@@ -97,10 +97,8 @@ get_space() const {
 
 void OdeGeom::
 write(ostream &out, unsigned int indent) const {
-  #ifndef NDEBUG //[
   out.width(indent); 
   out << get_type() << "(id = " << _id << ")";
-  #endif //] NDEBUG
 }
 
 OdeBoxGeom OdeGeom::

+ 0 - 2
panda/src/ode/odeJoint.cxx

@@ -92,7 +92,6 @@ get_body(int index) const {
 
 void OdeJoint::
 write(ostream &out, unsigned int indent) const {
-  #ifndef NDEBUG //[
   out.width(indent); out << "" << get_type() \
                          << "(id = " << _id \
                          << ", body1 = ";
@@ -113,7 +112,6 @@ write(ostream &out, unsigned int indent) const {
   }
   out << ")";
 
-  #endif //] NDEBUG
 }
 
 OdeJoint::

+ 1 - 2
panda/src/ode/odeMass.cxx

@@ -20,6 +20,7 @@ TypeHandle OdeMass::_type_handle;
 OdeMass::
 OdeMass() : 
   _mass() {
+  dMassSetZero(&_mass);
 }
 
 OdeMass::
@@ -52,12 +53,10 @@ operator = (const OdeMass &copy) {
 
 void OdeMass::
 write(ostream &out, unsigned int indent) const {
-  #ifndef NDEBUG //[
   out.width(indent); 
   out << get_type() \
       << "(mag = " << get_magnitude() \
       << ", center = " << get_center() \
       << ", inertia = " << get_inertial_tensor() \
       << ")";
-  #endif //] NDEBUG
 }

+ 0 - 2
panda/src/ode/odeSpace.cxx

@@ -105,9 +105,7 @@ get_geom(int i) {
 
 void OdeSpace::
 write(ostream &out, unsigned int indent) const {
-  #ifndef NDEBUG //[
   out.width(indent); out << "" << get_type() << "(id = " << _id << ")";
-  #endif //] NDEBUG
 }
 
 OdeSpace::