projects
/
dana
/
openbox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
61ea33bf411b23d0a11610a2402aa95e4c3d93ff
[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
}