summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/log.h60
1 files changed, 42 insertions, 18 deletions
diff --git a/util/log.h b/util/log.h
index a88b8786..69da1428 100644
--- a/util/log.h
+++ b/util/log.h
@@ -103,45 +103,69 @@ typedef enum {
#endif
#if GJS_VERBOSE_ENABLE_PROPS
-#define gjs_debug_jsprop(topic, ...) \
- do { gjs_debug(topic, __VA_ARGS__); } while(0)
+# define GJS_USED_VERBOSE_PROPS
+# define gjs_debug_jsprop(topic, ...) \
+ do { \
+ gjs_debug(topic, __VA_ARGS__); \
+ } while (0)
#else
-#define gjs_debug_jsprop(topic, ...) ((void)0)
+# define GJS_USED_VERBOSE_PROPS G_GNUC_UNUSED
+# define gjs_debug_jsprop(topic, ...) ((void)0)
#endif
#if GJS_VERBOSE_ENABLE_MARSHAL
-#define gjs_debug_marshal(topic, ...) \
- do { gjs_debug(topic, __VA_ARGS__); } while(0)
+# define GJS_USED_VERBOSE_MARSHAL
+# define gjs_debug_marshal(topic, ...) \
+ do { \
+ gjs_debug(topic, __VA_ARGS__); \
+ } while (0)
#else
-#define gjs_debug_marshal(topic, ...) ((void)0)
+# define GJS_USED_VERBOSE_MARSHAL G_GNUC_UNUSED
+# define gjs_debug_marshal(topic, ...) ((void)0)
#endif
#if GJS_VERBOSE_ENABLE_LIFECYCLE
-#define gjs_debug_lifecycle(topic, ...) \
- do { gjs_debug(topic, __VA_ARGS__); } while(0)
+# define GJS_USED_VERBOSE_LIFECYCLE
+# define gjs_debug_lifecycle(topic, ...) \
+ do { \
+ gjs_debug(topic, __VA_ARGS__); \
+ } while (0)
#else
-#define gjs_debug_lifecycle(topic, ...) ((void)0)
+# define GJS_USED_VERBOSE_LIFECYCLE G_GNUC_UNUSED
+# define gjs_debug_lifecycle(topic, ...) ((void)0)
#endif
#if GJS_VERBOSE_ENABLE_GI_USAGE
-#define gjs_debug_gi_usage(...) \
- do { gjs_debug(GJS_DEBUG_GI_USAGE, __VA_ARGS__); } while(0)
+# define GJS_USED_VERBOSE_GI_USAGE
+# define gjs_debug_gi_usage(...) \
+ do { \
+ gjs_debug(GJS_DEBUG_GI_USAGE, __VA_ARGS__); \
+ } while (0)
#else
-#define gjs_debug_gi_usage(...) ((void)0)
+# define GJS_USED_VERBOSE_GI_USAGE G_GNUC_UNUSED
+# define gjs_debug_gi_usage(...) ((void)0)
#endif
#if GJS_VERBOSE_ENABLE_GCLOSURE
-#define gjs_debug_closure(...) \
- do { gjs_debug(GJS_DEBUG_GCLOSURE, __VA_ARGS__); } while(0)
+# define GJS_USED_VERBOSE_GCLOSURE
+# define gjs_debug_closure(...) \
+ do { \
+ gjs_debug(GJS_DEBUG_GCLOSURE, __VA_ARGS__); \
+ } while (0)
#else
-#define gjs_debug_closure(...) ((void)0)
+# define GJS_USED_VERBOSE_GCLOSURE G_GNUC_UNUSED
+# define gjs_debug_closure(...) ((void)0)
#endif
#if GJS_VERBOSE_ENABLE_GSIGNAL
-#define gjs_debug_gsignal(...) \
- do { gjs_debug(GJS_DEBUG_GOBJECT, __VA_ARGS__); } while(0)
+# define GJS_USED_VERBOSE_GSIGNAL
+# define gjs_debug_gsignal(...) \
+ do { \
+ gjs_debug(GJS_DEBUG_GOBJECT, __VA_ARGS__); \
+ } while (0)
#else
-#define gjs_debug_gsignal(...) ((void)0)
+# define GJS_USED_VERBOSE_GSIGNAL G_GNUC_UNUSED
+# define gjs_debug_gsignal(...) ((void)0)
#endif
void gjs_debug(GjsDebugTopic topic,