Add macro string_sets (like string_cats)

This commit is contained in:
Patrick Pelissier committed 2021-01-10 09:51:38 +01:00
1 parent 5f05c1e169
commit 8a9d5f6a00
3 files changed
+11

No files matched your search

+4
View File
@@ -1859,6 +1859,10 @@ namespace m_lib {
#define string_cats(a, ...) \
M_MAP2_C(string_cat, a, __VA_ARGS__)
/* Set a string to a set strings (or const char * if C1)) */
#define string_sets(a, ...) \
(string_clean(a), M_MAP2_C(string_cat, a, __VA_ARGS__) )
/* Macro encapsulation for C11 */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L