Hacker News new | ask | show | jobs
by kevin_thibedeau 1246 days ago
> Can you get a type of a argument in C?

You can get it indirectly using _Generic().

1 comments

Sorry my bad. Yes, it works for proper function arguments. Does this work for variadic arguments? Parent seems to suggest, but i'm not aware of any mechanism for this.