mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
shared: add NM_PRINT_FMT_QUOTED2() helper macro
This commit is contained in:
parent
417737934e
commit
1b79b33206
|
@ -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), \
|
||||
|
|
Loading…
Reference in a new issue