Mercurial > audlegacy
changeset 4466:74a9861d4830
Empty declaration of AUDDBG is slightly dangerous, use "do { } while (0)" construct instead.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Apr 2008 00:33:15 +0300 |
parents | 9888a5613ccc |
children | acc5cc132e8a |
files | src/audacious/main.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/main.h Thu Apr 17 00:31:09 2008 +0300 +++ b/src/audacious/main.h Thu Apr 17 00:33:15 2008 +0300 @@ -47,9 +47,9 @@ /* macro for debug print */ #ifdef AUD_DEBUG -# define AUDDBG(...) g_print("%s:%d %s(): ", __FILE__, (int)__LINE__, __FUNCTION__), g_print(__VA_ARGS__) +# define AUDDBG(...) do { g_print("%s:%d %s(): ", __FILE__, (int)__LINE__, __FUNCTION__); g_print(__VA_ARGS__); } while (0) #else -# define AUDDBG(...) +# define AUDDBG(...) do { } while (0) #endif