summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorrhp <rhp>2001-05-31 03:30:58 +0000
committerrhp <rhp>2001-05-31 03:30:58 +0000
commit1785975f3880c82824b05f82e8d6f2ef923d28bb (patch)
tree6438be2d49e7e113651368df0d85a09fc7e60c0c /src/util.c
parent287b6b15d3840d6546bbc55f9dbd7b3d098429c3 (diff)
downloadmetacity-1785975f3880c82824b05f82e8d6f2ef923d28bb.tar.gz
...
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 73fe1a13..3f6f3ea1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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;