mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 07:38:20 +02:00
shared: add NM_PRINT_FMT_QUOTED2() helper macro
This commit is contained in:
parent
417737934e
commit
1b79b33206
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue