From 9f229cf4ee90b89eb6b2255300dc24d68ec17dd2 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 15 Feb 2010 17:41:19 +0000 Subject: [PATCH] Remove NDEBUG markers --- panda/src/ode/odeBody.cxx | 2 -- panda/src/ode/odeGeom.cxx | 2 -- panda/src/ode/odeJoint.cxx | 2 -- panda/src/ode/odeMass.cxx | 3 +-- panda/src/ode/odeSpace.cxx | 2 -- 5 files changed, 1 insertion(+), 10 deletions(-) diff --git a/panda/src/ode/odeBody.cxx b/panda/src/ode/odeBody.cxx index 3d37794d46..cbb35977ae 100755 --- a/panda/src/ode/odeBody.cxx +++ b/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:: diff --git a/panda/src/ode/odeGeom.cxx b/panda/src/ode/odeGeom.cxx index fff8a38048..f7a539c1c5 100755 --- a/panda/src/ode/odeGeom.cxx +++ b/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:: diff --git a/panda/src/ode/odeJoint.cxx b/panda/src/ode/odeJoint.cxx index 86e9d5a28f..b1d235efcb 100755 --- a/panda/src/ode/odeJoint.cxx +++ b/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:: diff --git a/panda/src/ode/odeMass.cxx b/panda/src/ode/odeMass.cxx index 16b7f82f63..45cc9fc64e 100755 --- a/panda/src/ode/odeMass.cxx +++ b/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 ©) { 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 } diff --git a/panda/src/ode/odeSpace.cxx b/panda/src/ode/odeSpace.cxx index c79c4dead6..b769909a66 100755 --- a/panda/src/ode/odeSpace.cxx +++ b/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::