Closed notwa closed 4 years ago
Thank you for suggesting this, and with such a clear explanation. I implemented it now with this commit, which passes your test case.
thanks! I didn't realize how much I used this feature, particularly with lament
(or eprintf
as others call it) until I began trying out other compilers, so it's very appreciated.
gcc's documentation specifies that a comma, a paste token, and the identifier
__VA_ARGS__
in that order within a macro definition invokes a special behavior where the comma will be eaten if__VA_ARGS__
is empty.I tried my hand at implementing this myself, but I figured you would have a better idea on how to go about this so I didn't make a pull request.
here is a silly example program. the tuple implementation is inspired by libCello.