]> icculus.org git repositories - dana/openbox.git/blob - openbox/debug.c
missing break would be bad in future if added more cases
[dana/openbox.git] / openbox / debug.c
1 #include <glib.h>
2 #include <stdlib.h>
3 #include <stdarg.h>
4 #include <stdio.h>
5
6 static gboolean show;
7
8 void ob_debug_show_output(gboolean enable)
9 {
10     show = enable;
11 }
12
13 void ob_debug(char *a, ...)
14 {
15     va_list vl;
16
17     if (show) {
18         va_start(vl, a);
19         vfprintf(stderr, a, vl);
20     }
21 }