Merge pull request #4220 from keszybz/show-and-formatting-fixes
Show and formatting fixes
This commit is contained in:
@@ -141,6 +141,11 @@ void strv_print(char **l);
|
||||
})
|
||||
|
||||
#define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x)
|
||||
#define STRPTR_IN_SET(x, ...) \
|
||||
({ \
|
||||
const char* _x = (x); \
|
||||
_x && strv_contains(STRV_MAKE(__VA_ARGS__), _x); \
|
||||
})
|
||||
|
||||
#define FOREACH_STRING(x, ...) \
|
||||
for (char **_l = ({ \
|
||||
|
||||
Reference in New Issue
Block a user