aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 2ace29740..abe60bf15 100644
--- a/src/main.c
+++ b/src/main.c
@@ -133,6 +133,24 @@ catch_sigint( int sig )
exit(EXIT_SUCCESS);
}
+#ifdef DEBUG
+void
+D(char *format, ...)
+{
+ if( options.debug )
+ {
+ gchar *msg;
+ va_list ap;
+
+ va_start(ap,format);
+ msg = g_strdup_vprintf(format,ap);
+ va_end(ap);
+ fprintf(stderr, "%s", msg);
+ g_free(msg);
+ }
+}
+#endif
+
int
main(int argc, const char *argv[])
{