summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-05 03:34:48 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-05 03:34:48 +0100
commit53ede806cb58c661efbee6bbaabee6b2f0d3ce79 (patch)
tree6081b987bca9e834e94341071f37c1d27378df52 /src/shared
parentefc141b8ffbfa1e449da40ce27fccaa81428f779 (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.h2
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)