X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=lib%2Fthread.cc;fp=lib%2Fthread.cc;h=6d15c49b761b2fc81e36a1f2adfd8e6c07dff4e7;hb=040fd630bf74eb8be75633bf3cbdb0c38d0f16f2;hp=b599a97d445ec1cd5a5efbe647f85ae2f95efb8a;hpb=d0b844b358f7bb7bc7c6f152223577efcebfc89b;p=notmuch diff --git a/lib/thread.cc b/lib/thread.cc index b599a97d..6d15c49b 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -24,6 +24,12 @@ #include #include /* GHashTable */ +#ifdef DEBUG_THREADING +#define THREAD_DEBUG(format, ...) fprintf(stderr, format " (%s).\n", ##__VA_ARGS__, __location__) +#else +#define THREAD_DEBUG(format, ...) do {} while (0) /* ignored */ +#endif + #define EMPTY_STRING(s) ((s)[0] == '\0') struct _notmuch_thread {