Re:Named parameters in C
by CountHackulus on Monday July 14, 2014 @10:00AM
(#8030924)
And that's almost exactly what the macro expands to. It's just some nice syntactic sugar on top.
[ Parent
| on HN ]
The function declaration with the macro is a bit awkward, IMO. I don't mean to downplay the awesomeness of the macro approach, though; FOR_EACH and putting __VA_ARGS__ at the beginning of the macro argument list isn't something I had considered before.