+Mon Jul 5 18:50:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gmessages.h (g_debug): Complete the g_log()
+ family. (#135730, Sven Herzberg)
+
Mon Jul 5 18:42:30 2004 Matthias Clasen <maclas@gmx.de>
* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
+Mon Jul 5 18:50:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gmessages.h (g_debug): Complete the g_log()
+ family. (#135730, Sven Herzberg)
+
Mon Jul 5 18:42:30 2004 Matthias Clasen <maclas@gmx.de>
* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
+Mon Jul 5 18:50:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gmessages.h (g_debug): Complete the g_log()
+ family. (#135730, Sven Herzberg)
+
Mon Jul 5 18:42:30 2004 Matthias Clasen <maclas@gmx.de>
* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
+Mon Jul 5 18:50:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gmessages.h (g_debug): Complete the g_log()
+ family. (#135730, Sven Herzberg)
+
Mon Jul 5 18:42:30 2004 Matthias Clasen <maclas@gmx.de>
* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
+Mon Jul 5 18:50:27 2004 Matthias Clasen <maclas@gmx.de>
+
+ * glib/gmessages.h (g_debug): Complete the g_log()
+ family. (#135730, Sven Herzberg)
+
Mon Jul 5 18:42:30 2004 Matthias Clasen <maclas@gmx.de>
* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
+Mon Jul 5 18:49:56 2004 Matthias Clasen <maclas@gmx.de>
+
+ * glib/tmpl/messages.sgml:
+ * glib/glib-sections.txt: Add g_debug.
+
2004-06-15 Federico Mena Quintero <federico@ximian.com>
* glib/tmpl/conversions.sgml: New section on file name encodings.
g_warning
g_critical
g_error
+g_debug
<SUBSECTION>
g_log_set_handler
@...: format string, followed by parameters to insert into the format string (as with <function>printf()</function>)
+<!-- ##### MACRO g_debug ##### -->
+<para>
+A convenience function/macro to log a debug message.
+</para>
+
+@...: format string, followed by parameters to insert into the format string (as with <function>printf()</function>)
+
<!-- ##### MACRO g_critical ##### -->
<para>
Logs a "critical warning" (#G_LOG_LEVEL_CRITICAL). It's more or less
#define g_warning(...) g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_WARNING, \
__VA_ARGS__)
+#define g_debug(...) g_log (G_LOG_DOMAIN, \
+ G_LOG_LEVEL_DEBUG, \
+ __VA_ARGS__)
#elif defined(G_HAVE_GNUC_VARARGS)
#define g_error(format...) g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_ERROR, \
#define g_warning(format...) g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_WARNING, \
format)
+#define g_debug(format...) g_log (G_LOG_DOMAIN, \
+ G_LOG_LEVEL_WARNING, \
+ format)
#else /* no varargs macros */
static void
g_error (const gchar *format,
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, format, args);
va_end (args);
}
+static void
+g_debug (const gchar *format,
+ ...)
+{
+ va_list args;
+ va_start (args, format);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, args);
+ va_end (args);
+}
#endif /* !__GNUC__ */
typedef void (*GPrintFunc) (const gchar *string);