X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/c8f56274f6d6f7cb8f7f8a2f002989c396a07042..14efb05b582519de79bf9b0f6fe9dedfa6cc168e:/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