macros: add NM_PRINT_FMT_QUOTED() macro

(cherry picked from commit 972f61fcd7)
This commit is contained in:
Thomas Haller 2015-06-17 17:43:18 +02:00
parent e1283824ef
commit a51d2d6149

View file

@ -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