From 53ede806cb58c661efbee6bbaabee6b2f0d3ce79 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 5 Mar 2014 03:34:48 +0100 Subject: strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings --- src/shared/strv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) -- cgit v1.2.3-54-g00ecf