4 ms·
Very nice, I had no idea that we finally had recursive macros using this feature. In practice I find that usually empty __VA_ARGS__ can be tamed by making last
by PhilipRoman 3y ago
Very nice, I had no idea that we finally had recursive macros using this feature.
In practice I find that usually empty __VA_ARGS__ can be tamed by making last non-optional parameter part of the vararg. Sometimes a helper function wrapper is needed though.
- lifthrasiir 3y agoYou still don't have actual recursive macros, though the semantics of `__VA_OPT__` makes it easier to force expansion and thus rescanning without a lot of additional macro declarations.