X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdebug.c;fp=openbox%2Fdebug.c;h=61ea33bf411b23d0a11610a2402aa95e4c3d93ff;hb=d2a628a48768f67e6f9f3da038ce7b975615195a;hp=0000000000000000000000000000000000000000;hpb=bcc090ec83fe26b6b3afa144033c38021f49c400;p=chaz%2Fopenbox diff --git a/openbox/debug.c b/openbox/debug.c new file mode 100644 index 00000000..61ea33bf --- /dev/null +++ b/openbox/debug.c @@ -0,0 +1,21 @@ +#include +#include +#include +#include + +static gboolean show; + +void ob_debug_show_output(gboolean enable) +{ + show = enable; +} + +void ob_debug(char *a, ...) +{ + va_list vl; + + if (show) { + va_start(vl, a); + vfprintf(stderr, a, vl); + } +}