mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings
This commit is contained in:
@@ -116,3 +116,5 @@ void strv_print(char **l);
|
||||
} \
|
||||
_l; \
|
||||
})
|
||||
|
||||
#define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x)
|
||||
|
||||
Reference in New Issue
Block a user