No varargs macros in visual studio

This commit is contained in:
Yevgen Muntyan 2008-01-14 20:34:48 -06:00
parent c115860af3
commit a00eed3f95

View File

@ -55,13 +55,28 @@ gboolean moo_debug_enabled (const char *var,
#define MOO_DEBUG(whatever) G_STMT_START {whatever;} G_STMT_END
#else
#elif defined(__GNUC__)
#define MOO_DEBUG_INIT(domain, def_enabled)
#define moo_dmsg(format, args...) G_STMT_START {} G_STMT_END
#define _moo_message(format, args...) G_STMT_START {} G_STMT_END
#define MOO_DEBUG(whatever) G_STMT_START {} G_STMT_END
#else
#define MOO_DEBUG_INIT(domain, def_enabled)
#define MOO_DEBUG(whatever) G_STMT_START {} G_STMT_END
static void moo_dmsg (const char *format, ...)
{
}
static void _moo_message_dummy (const char *format, ...)
{
}
#define _moo_message _moo_message_dummy
#endif