diff options
author | Thomas Haller <thaller@redhat.com> | 2015-06-17 17:43:18 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-06-17 17:46:54 +0200 |
commit | 972f61fcd78e374828c6bfca39744facc3f7f2cf (patch) | |
tree | 8303cfe689bbafd3dd7dbb962de9f9ee8435b2af /include | |
parent | 3be5e2908ca643568277a513f60f8bb49b051561 (diff) | |
download | NetworkManager-972f61fcd78e374828c6bfca39744facc3f7f2cf.tar.gz |
macros: add NM_PRINT_FMT_QUOTED() macro
Diffstat (limited to 'include')
-rw-r--r-- | include/nm-macros-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nm-macros-internal.h b/include/nm-macros-internal.h index 0cb85cea74..78c4206cf3 100644 --- a/include/nm-macros-internal.h +++ b/include/nm-macros-internal.h @@ -100,6 +100,11 @@ _found; \ }) +#define NM_PRINT_FMT_QUOTED(cond, prefix, str, suffix, str_else) \ + (cond) ? (prefix) : "", \ + (cond) ? (str) : (str_else), \ + (cond) ? (suffix) : "" + /*****************************************************************************/ #ifdef NM_MORE_ASSERTS |