[mutter] util: Implement meta_verbose() using meta_topic()



commit e280589661437a769c4fea00b284d5673f65f617
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Mon Nov 15 18:27:30 2021 +0100

    util: Implement meta_verbose() using meta_topic()
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2094>

 src/meta/util.h | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/meta/util.h b/src/meta/util.h
index 876840a2d5..7972efd6a0 100644
--- a/src/meta/util.h
+++ b/src/meta/util.h
@@ -179,14 +179,6 @@ GPid meta_show_dialog (const char *type,
 
 const char * meta_topic_to_string (MetaDebugTopic topic);
 
-#define meta_verbose(...) \
-  G_STMT_START \
-    { \
-      if (meta_is_topic_enabled (META_DEBUG_VERBOSE)) \
-        meta_verbose_real (__VA_ARGS__); \
-    } \
-  G_STMT_END
-
 #define meta_topic(debug_topic, ...) \
   G_STMT_START \
     { \
@@ -197,6 +189,8 @@ const char * meta_topic_to_string (MetaDebugTopic topic);
     } \
   G_STMT_END
 
+#define meta_verbose(...) meta_topic (META_DEBUG_VERBOSE, __VA_ARGS__)
+
 #else
 
 #  ifdef G_HAVE_ISO_VARARGS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]