Join Nostr
2025-11-25 18:51:24 UTC
in reply to

equinox on Nostr: nprofile1q…vsyqt we have named function arguments at home! Named function arguments ...

we have named function arguments at home!

Named function arguments at home:

struct args {
int a, b, c, d;
};
int myfunc(struct args args);
\#define myfunc(...) myfunc((struct args){ __VA_ARGS__ })

use as:
myfunc(1, 2, .d = 4);

You're welcome! (For the new reason to scream into the abyss. I don't know where the brain bleach is, sorry.)