gstinfo: add a comment explaining the reason for using fucntion protos here.
authorStefan Kost <ensonic@users.sf.net>
Mon, 29 Mar 2010 13:34:03 +0000 (16:34 +0300)
committerStefan Kost <ensonic@users.sf.net>
Mon, 29 Mar 2010 13:38:05 +0000 (16:38 +0300)
gst/gstinfo.h

index ec60f6420aa810786d4d1d5d909aba894e45845a..64e6157920d6f0f5a6a5803448c6a330fbe9c9d6 100644 (file)
@@ -1177,9 +1177,12 @@ GST_FIXME (const char *format, ...)
 #define gst_debug_set_threshold_for_name(name,level)   G_STMT_START{ }G_STMT_END
 #define gst_debug_unset_threshold_for_name(name)       G_STMT_START{ }G_STMT_END
 
+/* we are using dummy function prototypes here to eat ';' as these macros are
+ * used outside of functions */
 #define GST_DEBUG_CATEGORY(var)                                void _gst_debug_dummy_##var (void)
 #define GST_DEBUG_CATEGORY_EXTERN(var)                 void _gst_debug_dummy_extern_##var (void)
 #define GST_DEBUG_CATEGORY_STATIC(var)                 void _gst_debug_dummy_static_##var (void)
+
 #define GST_DEBUG_CATEGORY_INIT(var,name,color,desc)   G_STMT_START{ }G_STMT_END
 #define GST_DEBUG_CATEGORY_GET(var,name)               G_STMT_START{ }G_STMT_END
 #define gst_debug_category_free(category)              G_STMT_START{ }G_STMT_END