Post #1897176
2026-05-02 20:31 UTC
@thephd@pony.social if you allowed “auto x” for a default case, `#define bar(X) _Generic(X, auto x: …)` could become the least bad way to bind the expansion of a preprocessor macro to a variable inside a single expression
Replies (1)
-
@typeswitch@gamedev.lgbt 2026-05-02 21:49
@fay59@tech.lgbt @thephd@pony.social you can use `default` ... `_Generic(X, default x: ...)` should work. https://godbolt.org/z/3bGKqaWPK