/* Try the GCC extension for valists in macros */
#define CLUTTER_NOTE(type,x,a...) G_STMT_START { \
if (G_UNLIKELY (CLUTTER_HAS_DEBUG (type))) { \
- _clutter_debug_message ("[" #type "]:" \
- G_STRLOC ": " x, ##a); \
+ _clutter_debug_message ("[" #type "]:" G_STRLOC ": " x, ##a); \
} } G_STMT_END
#else /* !__GNUC__ */
* empty arguments to the macro, which means we have to
* do an intemediate printf.
*/
-#define CLUTTER_NOTE(type,...) G_STMT_START { \
- if (G_UNLIKELY (CLUTTER_HAS_DEBUG (type))) { \
- gchar * _fmt = g_strdup_printf (__VA_ARGS__); \
- _clutter_debug_message ("[" #type "]:" \
- G_STRLOC ": %s", _fmt); \
- g_free (_fmt); \
+#define CLUTTER_NOTE(type,...) G_STMT_START { \
+ if (G_UNLIKELY (CLUTTER_HAS_DEBUG (type))) { \
+ gchar *_fmt = g_strdup_printf (__VA_ARGS__); \
+ _clutter_debug_message ("[" #type "]:" G_STRLOC ": %s", _fmt); \
+ g_free (_fmt); \
} } G_STMT_END
#endif