mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 05:28:07 +02:00
macros: add NM_PRINT_FMT_QUOTED() macro
(cherry picked from commit 972f61fcd7)
This commit is contained in:
parent
e1283824ef
commit
a51d2d6149
1 changed files with 5 additions and 0 deletions
|
|
@ -100,6 +100,11 @@
|
||||||
_found; \
|
_found; \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
#define NM_PRINT_FMT_QUOTED(cond, prefix, str, suffix, str_else) \
|
||||||
|
(cond) ? (prefix) : "", \
|
||||||
|
(cond) ? (str) : (str_else), \
|
||||||
|
(cond) ? (suffix) : ""
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#ifdef NM_MORE_ASSERTS
|
#ifdef NM_MORE_ASSERTS
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue