From f26ac1474a7200a9c286747ab53f7c4bbf036087 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 19 Jan 2004 09:58:29 +0000 Subject: [PATCH] add G_STMT macros Original commit message from CVS: add G_STMT macros --- ChangeLog | 6 ++++++ gst/gstelement.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c537dc74cd..75d7318cb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-01-19 Thomas Vander Stichele + + * gst/gstelement.h: + add G_STMT macros to gst_element_error, which isn't strictly + necessary but people tell me to anyway. + 2004-01-18 Thomas Vander Stichele * gst/Makefile.am: diff --git a/gst/gstelement.h b/gst/gstelement.h index 2537ebace2..ae3ccd6a70 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -139,12 +139,12 @@ typedef enum { #define GST_ELEMENT_CLOCK(obj) (((GstElement*)(obj))->clock) #define GST_ELEMENT_PADS(obj) ((obj)->pads) -#define gst_element_error(el, domain, code, message, debug) \ +#define gst_element_error(el, domain, code, message, debug) G_STMT_START { \ gst_element_error_extended (GST_ELEMENT(el), \ GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code, \ g_strdup_printf message, \ g_strdup_printf debug, \ - __FILE__, GST_FUNCTION, __LINE__) + __FILE__, GST_FUNCTION, __LINE__); } G_STMT_END typedef struct _GstElementFactory GstElementFactory; typedef struct _GstElementFactoryClass GstElementFactoryClass;