diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-09-08 01:01:44 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-09-08 01:01:44 +0000 |
commit | 636bb94fe69e48f07e87cc206ad730aeecb58158 (patch) | |
tree | 8a97a940a18d85d3871adc8c206c5a8ad74a36db | |
parent | 27b470e10d0ed2095e9e132193a6ae1ecff918bf (diff) |
improve Valgrind output
-rw-r--r-- | debug.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ #define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x) #define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__) #define free(x) DebugMemory_free(x, __FILE__, __LINE__) - #define debug_done() DebugMemory_report() + #define debug_done() DebugMemory_report(); _nc_free_and_exit() #elif defined(DEBUGLITE) @@ -16,13 +16,13 @@ #ifdef NDEBUG #undef NDEBUG #endif - #define debug_done() sleep(0) + #define debug_done() #else /* No debugging */ #define NDEBUG - #define debug_done() sleep(0) + #define debug_done() #endif |