From e280589661437a769c4fea00b284d5673f65f617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 15 Nov 2021 18:27:30 +0100 Subject: [PATCH] util: Implement meta_verbose() using meta_topic() Part-of: --- 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 876840a2d..7972efd6a 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