diff options
author | Thomas Haller <thaller@redhat.com> | 2018-11-12 11:46:47 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-11-12 11:47:04 +0100 |
commit | a15756d99070abc3247cffa68a00578c40bb242a (patch) | |
tree | 407dfe2a381acf67a8c9adf50cbbc22defa26808 | |
parent | 763cb8d486de61315da70a54c12fd0daf234ddb0 (diff) | |
download | NetworkManager-a15756d99070abc3247cffa68a00578c40bb242a.tar.gz |
shared: add NM_MAKE_STRV() macro
-rw-r--r-- | shared/nm-utils/nm-macros-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/nm-utils/nm-macros-internal.h b/shared/nm-utils/nm-macros-internal.h index 6a419f788f..40e2dd0bc9 100644 --- a/shared/nm-utils/nm-macros-internal.h +++ b/shared/nm-utils/nm-macros-internal.h @@ -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)) |