[gegl] buffer: disable more of the debug code in default builds



commit e3024b25db17c577e07c3a9eca17b8acfd63877e
Author: �yvind Kolås <pippin gimp org>
Date:   Mon Dec 20 21:07:42 2010 +0000

    buffer: disable more of the debug code in default builds
    
    For WIN32 and OSX the currently used ways of annotating backtraces for leaked
    buffers does not work, since this feature is off by defualt it shouldnt incurr
    additional errors on those platforms.

 gegl/buffer/gegl-buffer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index fef5cbf..99dfd50 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -851,7 +851,6 @@ gegl_buffer_class_init (GeglBufferClass *class)
 }
 
 #ifdef GEGL_BUFFER_DEBUG_ALLOCATIONS
-#endif
 #define MAX_N_FUNCTIONS 100
 static gchar *
 gegl_buffer_get_alloc_stack (void)
@@ -889,11 +888,14 @@ gegl_buffer_get_alloc_stack (void)
 
   return result;
 }
+#endif
 
 void gegl_bt (void);
 void gegl_bt (void)
 {
+#ifdef GEGL_BUFFER_DEBUG_ALLOCATIONS
   g_print ("%s\n", gegl_buffer_get_alloc_stack ());
+#endif
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]