X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fev-debug.h;h=53c1e61b2084dac24586c2809be90df30df3d44d;hb=65c06150e05948eb7b056b0ec5cb9c364b652cfe;hp=2c4c521f844797ed3e7858d3f05671013b3630c9;hpb=16ebda50ec3b3ab96d9bbc3c8e8522b269ef1191;p=evince.git diff --git a/lib/ev-debug.h b/lib/ev-debug.h index 2c4c521f..53c1e61b 100644 --- a/lib/ev-debug.h +++ b/lib/ev-debug.h @@ -32,13 +32,25 @@ G_BEGIN_DECLS #define DISABLE_PROFILING #endif +#if defined(G_HAVE_GNUC_VARARGS) + #ifdef DISABLE_LOGGING -#define LOG(msg, args...) +#define LOG(msg, args...) G_STMT_START { } G_STMT_END #else -#define LOG(msg, args...) \ -g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ - "[ %s ] " msg, \ - __FILE__ , ## args); +#define LOG(msg, args...) \ +g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ + "[ %s ] " msg, \ + __FILE__ , ## args) +#endif + +#elif defined(G_HAVE_ISO_VARARGS) + +#define LOG(...) G_STMT_START { } G_STMT_END + +#else /* no varargs macros */ + +static void LOG(const char *format, ...) {} + #endif #ifdef DISABLE_PROFILING