Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
29:7246460b73f8
Parent:
4:de46f0d9b14d
Child:
74:81c47fff88a5
--- a/vector.cpp	Tue Sep 23 18:28:37 2014 +0000
+++ b/vector.cpp	Wed Sep 24 18:02:18 2014 +0000
@@ -1,4 +1,5 @@
 #include "vector.h"
+#include "prompt.h"
 
 Vector::Vector(){
     this->objects = NULL;
@@ -19,7 +20,7 @@
 }
 
 void Vector::remove_element( int position ){
-    debug_msg(" Removendo elemento %d", position );
+    if( debug_vector ) debug_msg( "Removing element %d", position );
     if( position > -1 && position < this->elements ){
         if( position == 0 && this->elements == 1 ) {
             this->elements = 0;
@@ -30,7 +31,7 @@
             this->objects = ( Object ** )realloc( this->objects, sizeof ( Object * ) * this->elements );
         }
     }
-    debug_msg(" remocao bem sucedida" );
+    if( debug_vector ) debug_msg( "Removed" );
 }
 
 int Vector::find_element( Object * e ){