shared: add NM_PRINT_FMT_QUOTED2() helper macro

This commit is contained in:
Thomas Haller 2020-09-22 09:46:29 +02:00
parent 417737934e
commit 1b79b33206
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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), \