diff options
author | Thomas Haller <thaller@redhat.com> | 2020-09-22 09:46:29 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-09-24 09:43:53 +0200 |
commit | 1b79b33206c3c0675537f8d86b08bcc0bac4393b (patch) | |
tree | cc9645825a39abe8bb114dcabec90d708fdd7211 | |
parent | 417737934ee119dfc7b8523598823ec311ae2ded (diff) | |
download | NetworkManager-1b79b33206c3c0675537f8d86b08bcc0bac4393b.tar.gz |
shared: add NM_PRINT_FMT_QUOTED2() helper macro
-rw-r--r-- | shared/nm-glib-aux/nm-macros-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/nm-glib-aux/nm-macros-internal.h b/shared/nm-glib-aux/nm-macros-internal.h index 7d393ba39b..f064d29717 100644 --- a/shared/nm-glib-aux/nm-macros-internal.h +++ b/shared/nm-glib-aux/nm-macros-internal.h @@ -596,6 +596,9 @@ nm_str_realloc (char *str) /*****************************************************************************/ +#define NM_PRINT_FMT_QUOTED2(cond, prefix, str, str_else) \ + (cond) ? (prefix) : "", \ + (cond) ? (str) : (str_else) #define NM_PRINT_FMT_QUOTED(cond, prefix, str, suffix, str_else) \ (cond) ? (prefix) : "", \ (cond) ? (str) : (str_else), \ |