summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rest/rest-private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/rest/rest-private.h b/rest/rest-private.h
index f32db2e..444bf09 100644
--- a/rest/rest-private.h
+++ b/rest/rest-private.h
@@ -39,8 +39,10 @@ typedef enum
extern guint rest_debug_flags;
+#define REST_DEBUG_ENABLED(category) (rest_debug_flags & REST_DEBUG_##category)
+
#define REST_DEBUG(category,x,a...) G_STMT_START { \
- if (rest_debug_flags & REST_DEBUG_##category) \
+ if (REST_DEBUG_ENABLED(category)) \
{ g_message ("[" #category "] " G_STRLOC ": " x, ##a); } \
} G_STMT_END