Adding OUT_STR & GET_STR operators for variants

This commit is contained in:
Patrick Pelissier committed 2017-02-28 22:42:20 +01:00
1 parent 222cc98ddf
commit b38a926f3c
3 files changed
+54 -5

No files matched your search

+3
View File
@@ -195,6 +195,9 @@
/* Return 1 if comma inside the argument list, 0 otherwise */
#define M_COMMA_P(...) M_RET_ARG27(__VA_ARGS__, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, useless)
/* Return the string representation of the evaluated x */
#define M_AS_STR(x) #x
/* Return 1 if the argument is 'empty', 0 otherwise.
Handle: EMPTY_P(), EMPTY_P(x), EMPTY_P(()) and EMPTY_P(,) and EMPTY_P(f) with #define f() 2,3 */
#define M_EMPTYI_DETECT(...) 0, 1,