strv: add new STR_IN_SET() macro that operates similar to IN_SET() but for strings
This commit is contained in:
@@ -116,3 +116,5 @@ void strv_print(char **l);
|
||||
} \
|
||||
_l; \
|
||||
})
|
||||
|
||||
#define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x)
|
||||
|
||||
Reference in New Issue
Block a user