handle different cases of preprocessor macro varargs support.

2002-08-09  Yanko Kaneti <yaneti@declera.com>

   * capplets/common/capplet-util.h: handle different cases of
   preprocessor macro varargs support.
This commit is contained in:
Yanko Kaneti 2002-08-09 17:55:52 +00:00 committed by Yanko Kaneti
parent 307dd6b3a5
commit c7e265f7c9
2 changed files with 14 additions and 1 deletions

View file

@ -32,9 +32,17 @@
/* Print a debugging message */
#define DEBUG_MSG(str, ...) \
#ifdef G_HAVE_ISO_VARARGS
# define DEBUG_MSG(str, ...) \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "(%d:%s) " str, \
getpid (), G_GNUC_FUNCTION, __VA_ARGS__)
#elif defined(G_HAVE_GNUC_VARARGS)
# define DEBUG_MSG(str, args...) \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "(%d:%s) " str, \
getpid (), G_GNUC_FUNCTION, args)
#else
# define DEBUG_MSG(str, args...)
#endif
/* Retrieve a widget from the Glade object */