diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-29 22:40:04 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-29 22:40:04 +0800 |
commit | de81b744d6ca7e17fe765dc37eaa4b028aef0288 (patch) | |
tree | 6ce111fdf823cf208060a2a6f5443f8097590531 /lib | |
parent | 46cefec5ace6b848a55130891bbbd3703d3bfbd5 (diff) | |
download | gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.tar gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.tar.gz gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.tar.bz2 gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.tar.lz gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.tar.xz gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.tar.zst gsoc2013-epiphany-de81b744d6ca7e17fe765dc37eaa4b028aef0288.zip |
Use ISO style variable argument macros. Patch by Brian Cameron, part of
2004-05-29 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-debug.h:
Use ISO style variable argument macros. Patch by Brian Cameron,
part of bug #141319.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ephy-debug.h b/lib/ephy-debug.h index 0be7f73bc..9326d935a 100644 --- a/lib/ephy-debug.h +++ b/lib/ephy-debug.h @@ -34,6 +34,16 @@ G_BEGIN_DECLS #define DISABLE_PROFILING #endif +#ifdef G_HAVE_ISO_VARARGS +#ifdef DISABLE_LOGGING +#define LOG(msg, ...) +#else +#define LOG(msg, ...) \ +g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ + "[ %s ] " msg, \ + __FILE__ , __VA_ARGS__); +#endif +#elif defined(G_HAVE_GNUC_VARARGS) #ifdef DISABLE_LOGGING #define LOG(msg, args...) #else @@ -42,6 +52,7 @@ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ "[ %s ] " msg, \ __FILE__ , ## args); #endif +#endif #ifdef DISABLE_PROFILING #define START_PROFILER(name) |