diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2009-08-03 14:11:33 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2009-08-03 14:25:09 +0100 |
commit | c9c87543e8f827ee4c3510cd0025e8653d3309b1 (patch) | |
tree | 04a5ef96d9d12b4d93d0f3a7bdb40e2b37b69dc7 /clutter/clutter-debug.h | |
parent | cd35f3b384b645d171de49eee555363d4b2acc94 (diff) | |
download | clutter-c9c87543e8f827ee4c3510cd0025e8653d3309b1.tar.gz |
[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
Diffstat (limited to 'clutter/clutter-debug.h')
-rw-r--r-- | clutter/clutter-debug.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clutter/clutter-debug.h b/clutter/clutter-debug.h index 77ee9674e..2a32f852c 100644 --- a/clutter/clutter-debug.h +++ b/clutter/clutter-debug.h @@ -77,11 +77,11 @@ typedef enum { #else /* !CLUTTER_ENABLE_DEBUG */ -#define CLUTTER_NOTE(type,...) -#define CLUTTER_MARK() -#define CLUTTER_DBG(x) -#define CLUTTER_GLERR() -#define CLUTTER_TIMESTAMP(type,...) +#define CLUTTER_NOTE(type,...) G_STMT_START { } G_STMT_END +#define CLUTTER_MARK() G_STMT_START { } G_STMT_END +#define CLUTTER_DBG(x) G_STMT_START { } G_STMT_END +#define CLUTTER_GLERR() G_STMT_START { } G_STMT_END +#define CLUTTER_TIMESTAMP(type,...) G_STMT_START { } G_STMT_END #endif /* CLUTTER_ENABLE_DEBUG */ |