util: Implement meta_verbose() using meta_topic()

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2094>
This commit is contained in:
Jonas Ådahl 2021-11-15 18:27:30 +01:00 committed by Marge Bot
parent 59166d745e
commit e280589661

View File

@ -179,14 +179,6 @@ GPid meta_show_dialog (const char *type,
const char * meta_topic_to_string (MetaDebugTopic topic); 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, ...) \ #define meta_topic(debug_topic, ...) \
G_STMT_START \ G_STMT_START \
{ \ { \
@ -197,6 +189,8 @@ const char * meta_topic_to_string (MetaDebugTopic topic);
} \ } \
G_STMT_END G_STMT_END
#define meta_verbose(...) meta_topic (META_DEBUG_VERBOSE, __VA_ARGS__)
#else #else
# ifdef G_HAVE_ISO_VARARGS # ifdef G_HAVE_ISO_VARARGS