X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/78188317f96392e12e51e02f9a94150f0ac1786f..e45e53c72f65e6e173ae1d624dd683fe0deefc61:/bti.h diff --git a/bti.h b/bti.h index cc93963..13cdbda 100644 --- 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