Assign creation of the allocation log file to a separate #define.

This commit is contained in:
Hisham Muhammad 2006-11-08 20:40:10 +00:00
parent febe259e91
commit c4fbd7fc8b

View File

@ -49,7 +49,11 @@ void DebugMemory_new() {
singleton->allocations = 0;
singleton->deallocations = 0;
singleton->size = 0;
#ifdef DEBUG_ALLOC
singleton->file = fopen("/tmp/htop-debug-alloc.txt", "w");
#else
singleton->file = NULL;
#endif
singleton->totals = true;
//singleton->file = NULL;
}