Re:Maintain It with Zig
by yisonPylkita on Wednesday September 08, 2021 @03:51PM
(#28462164)
Thank you. I had no idea that you could do such a thing in C11 preprocessor
[ Parent
| on HN ]
_Generic() is not a preprocessor feature, but a "real" language feature (I was confused too when I saw it first though).
The only preprocessor part in the example is mapping the function-like macro 'cbrt(X)' to the language keyword '_Generic(X)'.