gstinfo: define __gst_debug_min to LOG_LEVEL_NONE if debugging is disabled
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 19 Jun 2009 13:45:42 +0000 (14:45 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 19 Jun 2009 14:03:52 +0000 (15:03 +0100)
Just in case someone who clearly can't be deterred by any number of leading
underscores uses this very private but still somewhat documented symbol
directly in their code (*cough* qtdemux *cough*).

gst/gstinfo.h

index a58b807..d739480 100644 (file)
@@ -1097,6 +1097,8 @@ G_CONST_RETURN gchar *
 #  pragma GCC poison _gst_debug_category_new
 #endif
 
+#define __gst_debug_min GST_LEVEL_NONE
+
 #define _gst_debug_init()                              /* NOP */
 
 #define gst_debug_set_default_threshold(level)         /* NOP */
@@ -1169,7 +1171,7 @@ guint gst_debug_remove_log_function_by_data (gpointer data);
 #define GST_LOG(...)                                   /* NOP */
 #define GST_FIXME(...)                                 /* NOP */
 
-#else
+#else /* !G_HAVE_ISO_VARARGS */
 #ifdef G_HAVE_GNUC_VARARGS
 
 #define GST_CAT_LEVEL_LOG(cat,level,args...)           /* NOP */
@@ -1202,7 +1204,7 @@ guint gst_debug_remove_log_function_by_data (gpointer data);
 #define GST_LOG(args...)                               /* NOP */
 #define GST_FIXME(args...)                             /* NOP */
 
-#else
+#else /* !G_HAVE_GNUC_VARARGS */
 static inline void
 GST_CAT_LEVEL_LOG_valist (GstDebugCategory * cat,
     GstDebugLevel level, gpointer object, const char *format, va_list varargs)
@@ -1335,8 +1337,8 @@ GST_FIXME (const char *format, ...)
 {
 }
 
-#endif
-#endif
+#endif /* G_HAVE_GNUC_VARARGS */
+#endif /* G_HAVE_ISO_VARARGS */
 
 #define GST_DEBUG_FUNCPTR(ptr) (ptr)
 #define GST_DEBUG_FUNCPTR_NAME(ptr) (g_strdup_printf ("%p", ptr))