mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
Read-only mirror of https://gitlab.gnome.org/GNOME/mutter
071253c48b
All the macros get used for are to |= (a new flag bit), &= ~(a flag bit) or use the & operator to test if a flag bit is set. I haven't found the code more readable with these macros, but several times now I've felt the need to double check if these macros do anything else behind the hood or I've forgotten what flags are available so I've had to go to the macro definition to see what the full enum names are for the flags (the macros use symbol concatenation) so I can search for the definition of all the flags. It turns out they are defined next to the macro so you don't have to search far, but without the macro that wouldn't have been necessary. The more common use of the _IS_SET macro is actually more concise expanded and imho since it doesn't hide anything in a separate header file the code is more readable without the macro. |
||
---|---|---|
cogl | ||
doc | ||
pango | ||
Makefile.am |