From: Lennart Poettering Date: Wed, 5 Mar 2014 02:34:48 +0000 (+0100) Subject: strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings X-Git-Tag: v211~124 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=53ede806cb58c661efbee6bbaabee6b2f0d3ce79;p=elogind.git strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings --- diff --git a/src/shared/strv.h b/src/shared/strv.h index 13a4bb6cf..618951c5e 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)