diff options
author | rhp <rhp> | 2001-05-31 03:30:58 +0000 |
---|---|---|
committer | rhp <rhp> | 2001-05-31 03:30:58 +0000 |
commit | 1785975f3880c82824b05f82e8d6f2ef923d28bb (patch) | |
tree | 6438be2d49e7e113651368df0d85a09fc7e60c0c /src/util.c | |
parent | 287b6b15d3840d6546bbc55f9dbd7b3d098429c3 (diff) | |
download | metacity-1785975f3880c82824b05f82e8d6f2ef923d28bb.tar.gz |
...
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include "main.h" #include <stdio.h> +#include <stdlib.h> static gboolean is_verbose = TRUE; @@ -81,6 +82,27 @@ meta_verbose (const char *format, ...) } void +meta_bug (const char *format, ...) +{ + va_list args; + gchar *str; + + g_return_if_fail (format != NULL); + + va_start (args, format); + str = g_strdup_vprintf (format, args); + va_end (args); + + fputs ("Bug in window manager: ", stderr); + fputs (str, stderr); + + g_free (str); + + /* stop us in a debugger */ + abort (); +} + +void meta_warning (const char *format, ...) { va_list args; |