shared: add NM_PRINT_FMT_QUOTE_REF_STRING() macro

This commit is contained in:
Thomas Haller
2020-01-21 15:04:41 +01:00
parent f4fa003434
commit 5ce7ea38ff

View File

@@ -993,6 +993,7 @@ nm_str_realloc (char *str)
(cond) ? (str) : (str_else), \
(cond) ? (suffix) : ""
#define NM_PRINT_FMT_QUOTE_STRING(arg) NM_PRINT_FMT_QUOTED((arg), "\"", (arg), "\"", "(null)")
#define NM_PRINT_FMT_QUOTE_REF_STRING(arg) NM_PRINT_FMT_QUOTED((arg), "\"", (arg)->str, "\"", "(null)")
/*****************************************************************************/