gtkdebug: Document DEBUG_CHECK

This commit is contained in:
Maximiliano Sandoval 2024-05-25 18:12:44 +02:00
parent 0b540b9ad1
commit e6ca7668be
No known key found for this signature in database
GPG Key ID: D64A8D747F6FE706

View File

@ -106,6 +106,12 @@ typedef enum {
GTK_DEBUG_CSS = 1 << 20,
} GtkDebugFlags;
/**
* GTK_DEBUG_CHECK:
* @type: type to check
*
* Whether the `type` debug flag is set.
**/
#define GTK_DEBUG_CHECK(type) G_UNLIKELY (gtk_get_debug_flags () & GTK_DEBUG_##type)
GDK_AVAILABLE_IN_ALL