strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings

This commit is contained in:
Lennart Poettering
2014-03-05 03:34:48 +01:00
parent efc141b8ff
commit 53ede806cb
+2
View File
@@ -116,3 +116,5 @@ void strv_print(char **l);
} \
_l; \
})
#define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x)