mirror of https://github.com/xzeldon/htop.git
improve Valgrind output
This commit is contained in:
parent
27b470e10d
commit
636bb94fe6
6
debug.h
6
debug.h
|
@ -8,7 +8,7 @@
|
||||||
#define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x)
|
#define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x)
|
||||||
#define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__)
|
#define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__)
|
||||||
#define free(x) DebugMemory_free(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)
|
#elif defined(DEBUGLITE)
|
||||||
|
|
||||||
|
@ -16,13 +16,13 @@
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
#endif
|
#endif
|
||||||
#define debug_done() sleep(0)
|
#define debug_done()
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* No debugging */
|
/* No debugging */
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#define debug_done() sleep(0)
|
#define debug_done()
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue