commit | 7a955b5d735e1a2457daaa6059c4edc85ab75a2f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Sep 09 16:05:10 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Sep 09 16:15:10 2022 +0200 |
tree | fc4d858c63d5126143539dfcec2da00f9897bc98 | |
parent | 77acaf5af528d45e88e803f55b448d5b17e4762d [diff] |
MINOR: flags: implement a macro used to dump enums inside masks Some of our flags have enums inside a mask. The new macro __APPEND_ENUM is able to deal with that by comparing the flag's value against an exact one under the mask. One needs to take care of eliminating the zero value though, otherwise delimiters will not always be properly placed (e.g. if some flags were dumped before and what remains is exactly zero). The bits of the mask are cleared only upon exact matches.