[svn-upgrade] new version bti (031)
[debian/bti.git] / bti.h
diff --git a/bti.h b/bti.h
index cc93963503890b490cdc71c10dba3951b7966f0a..13cdbdaaac994e66f66429e933e9dc1342c2a04c 100644 (file)
--- a/bti.h
+++ b/bti.h
@@ -82,7 +82,16 @@ extern const char twitter_host[];
 extern const char identica_host[];
 extern const char twitter_name[];
 extern const char identica_name[];
+extern int debug;
 
 extern void bti_parse_configfile(struct session *session);
 
+#define dbg(format, arg...)                                            \
+       do {                                                            \
+               if (debug)                                              \
+                       fprintf(stdout, "bti: %s: " format , __func__ , \
+                               ## arg);                                \
+       } while (0)
+
+
 #endif