macros: add NM_PRINT_FMT_QUOTED() macro

This commit is contained in:
Thomas Haller 2015-06-17 17:43:18 +02:00
parent 3be5e2908c
commit 972f61fcd7

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