mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
clean up varargs macro definition
Original commit message from CVS: clean up varargs macro definition
This commit is contained in:
parent
168cee585f
commit
d0abebb8d0
1 changed files with 8 additions and 6 deletions
|
@ -24,15 +24,17 @@
|
||||||
static gboolean _gst_media_info_debug = TRUE;
|
static gboolean _gst_media_info_debug = TRUE;
|
||||||
|
|
||||||
#ifdef G_HAVE_ISO_VARARGS
|
#ifdef G_HAVE_ISO_VARARGS
|
||||||
|
|
||||||
#define GMI_DEBUG(...) \
|
#define GMI_DEBUG(...) \
|
||||||
{ if (_gst_media_info_debug) { g_print ( __VA_ARGS__ ); }}
|
G_STMT_START { \
|
||||||
|
if (_gst_media_info_debug) { g_print ( __VA_ARGS__ ); } \
|
||||||
|
} G_STMT_END
|
||||||
#elif defined(G_HAVE_GNUC_VARARGS)
|
#elif defined(G_HAVE_GNUC_VARARGS)
|
||||||
|
|
||||||
#define GMI_DEBUG(format, args...) \
|
#define GMI_DEBUG(format, args...) \
|
||||||
{ if (_gst_media_info_debug) { g_print ( format , ## args ); }}
|
G_STMT_START { \
|
||||||
|
if (_gst_media_info_debug) { g_print ( format , ## args ); } \
|
||||||
|
} G_STMT_END
|
||||||
|
#else
|
||||||
|
#error Variable argument macros not supported by compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue