diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-12-26 22:04:29 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-12-26 22:04:29 +0000 |
commit | 45f7a4fc8dfc469e5686e22d8feeda044f93d801 (patch) | |
tree | 242ce98827c1dc39c6287828f1fa97d01627e67d /debug.h | |
parent | 84281bdc44ea42e110efd256cdcdd37a84276204 (diff) |
Remove old memory debugging routines. We have Valgrind nowadays.
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/debug.h b/debug.h deleted file mode 100644 index ec2f883e..00000000 --- a/debug.h +++ /dev/null @@ -1,28 +0,0 @@ - -#if defined(DEBUG) - - /* Full debug */ - #include "DebugMemory.h" - #define calloc(a, b) DebugMemory_calloc(a, b, __FILE__, __LINE__) - #define malloc(x) DebugMemory_malloc(x, __FILE__, __LINE__, #x) - #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(); _nc_freeall() - -#elif defined(DEBUGLITE) - - /* Assertions and core only */ - #ifdef NDEBUG - #undef NDEBUG - #endif - #define debug_done() - -#else - - /* No debugging */ - #define NDEBUG - #define debug_done() - -#endif - |