]> Dogcows Code - chaz/openbox/blob - openbox/debug.c
add ob_debug for printing stuff only when debug is enabled
[chaz/openbox] / 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 }
This page took 0.036051 seconds and 5 git commands to generate.