Sfoglia il codice sorgente

added more debug output

Dave Schuyler 21 anni fa
parent
commit
79ae46385a
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      panda/src/physics/angularForce.cxx
  2. 2 2
      panda/src/physics/linearForce.cxx

+ 2 - 2
panda/src/physics/angularForce.cxx

@@ -79,7 +79,7 @@ is_linear() const {
 void AngularForce::
 output(ostream &out) const {
   #ifndef NDEBUG //[
-  out<<"AngularForce";
+  out<<"AngularForce (id "<<this<<")";
   #endif //] NDEBUG
 }
 
@@ -92,7 +92,7 @@ output(ostream &out) const {
 void AngularForce::
 write(ostream &out, unsigned int indent) const {
   #ifndef NDEBUG //[
-  out.width(indent); out<<""; out<<"AngularForce:\n";
+  out.width(indent); out<<""; out<<"AngularForce (id "<<this<<")\n";
   BaseForce::write(out, indent+2);
   #endif //] NDEBUG
 }

+ 2 - 2
panda/src/physics/linearForce.cxx

@@ -99,7 +99,7 @@ is_linear() const {
 void LinearForce::
 output(ostream &out) const {
   #ifndef NDEBUG //[
-  out<<"LinearForce";
+  out<<"LinearForce (id "<<this<<")";
   #endif //] NDEBUG
 }
 
@@ -112,7 +112,7 @@ output(ostream &out) const {
 void LinearForce::
 write(ostream &out, unsigned int indent) const {
   #ifndef NDEBUG //[
-  out.width(indent); out<<""; out<<"LinearForce:\n";
+  out.width(indent); out<<""; out<<"LinearForce (id "<<this<<")\n";
   out.width(indent+2); out<<""; out<<"_amplitude "<<_amplitude<<"\n";
   out.width(indent+2); out<<""; out<<"_mass_dependent "<<_mass_dependent<<"\n";
   out.width(indent+2); out<<""; out<<"_x_mask "<<_x_mask<<"\n";