chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings
[elogind.git]
/
src
/
shared
/
strv.h
diff --git
a/src/shared/strv.h
b/src/shared/strv.h
index 13a4bb6cf16d90af5acb429cc99363237bcf715a..618951c5e32f4045bd0b78966104d6143a34fa9c 100644
(file)
--- 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)