diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-05 03:34:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-05 03:34:48 +0100 |
commit | 53ede806cb58c661efbee6bbaabee6b2f0d3ce79 (patch) | |
tree | 6081b987bca9e834e94341071f37c1d27378df52 /src/shared | |
parent | efc141b8ffbfa1e449da40ce27fccaa81428f779 (diff) |
strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/strv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/strv.h b/src/shared/strv.h index 13a4bb6cf1..618951c5e3 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -116,3 +116,5 @@ void strv_print(char **l); } \ _l; \ }) + +#define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x) |