[debug] CLUTTER_{NOTE,MARK,DBG,GLERR,TIMESTAMP} should always be statements

In case someone tries to do:
	if (foo)
		CLUTTER_NOTE(DOMAIN, "%s", blah);

CLUTTER_NOTE () should always be a statement
This commit is contained in:
Damien Lespiau 2009-08-03 14:11:33 +01:00
parent cd35f3b384
commit c9c87543e8

View File

@ -77,11 +77,11 @@ typedef enum {
#else /* !CLUTTER_ENABLE_DEBUG */ #else /* !CLUTTER_ENABLE_DEBUG */
#define CLUTTER_NOTE(type,...) #define CLUTTER_NOTE(type,...) G_STMT_START { } G_STMT_END
#define CLUTTER_MARK() #define CLUTTER_MARK() G_STMT_START { } G_STMT_END
#define CLUTTER_DBG(x) #define CLUTTER_DBG(x) G_STMT_START { } G_STMT_END
#define CLUTTER_GLERR() #define CLUTTER_GLERR() G_STMT_START { } G_STMT_END
#define CLUTTER_TIMESTAMP(type,...) #define CLUTTER_TIMESTAMP(type,...) G_STMT_START { } G_STMT_END
#endif /* CLUTTER_ENABLE_DEBUG */ #endif /* CLUTTER_ENABLE_DEBUG */