![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: vector.cpp
- Revision:
- 89:0fe315117b00
- Parent:
- 87:679ee0d594a9
- Child:
- 109:a5b8264ffbbc
--- a/vector.cpp Tue Jan 06 16:39:09 2015 +0000 +++ b/vector.cpp Wed Jan 07 21:48:53 2015 +0000 @@ -14,6 +14,7 @@ this->objects = ( Object ** )realloc( this->objects, sizeof ( Object * ) * ++this->elements ); if ( this->objects == NULL ){ memory_is_over = true; + if( debug_memory ) debug_msg("Vector add fail"); }else{ this->objects[ this->elements - 1 ] = e; } @@ -35,6 +36,7 @@ this->objects[ position ] = this->objects[ --this->elements ]; this->objects = ( Object ** )realloc( this->objects, sizeof ( Object * ) * this->elements ); if( this->objects == NULL ) memory_is_over = true; + if( debug_memory ) debug_msg("Resize Vector fail"); } } if( debug_vector ) debug_msg( "Removed" );