mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 07:20:11 +01:00
shared: add NM_MAKE_STRV() macro
This commit is contained in:
parent
763cb8d486
commit
a15756d990
1 changed files with 3 additions and 0 deletions
|
|
@ -639,6 +639,9 @@ NM_G_ERROR_MSG (GError *error)
|
|||
#define NM_PROPAGATE_CONST(test_expr, ptr) (ptr)
|
||||
#endif
|
||||
|
||||
#define NM_MAKE_STRV(...) \
|
||||
((const char *const[]) { __VA_ARGS__, NULL })
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define _NM_IN_SET_EVAL_1( op, _x, y) (_x == (y))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue