I hereby claim:
- I am dhh1128 on github.
- I am danielhardman (https://keybase.io/danielhardman) on keybase.
- I have a public key ASC5mGC4Dkg3IL-cTVqannhJNbbJnaWCAEu4CZfnXcgiVAo
To claim this, I am signing this object:
// Accept any number of args >= N, but expand to just the Nth one. In this case, | |
// we have settled on 5 as N. We could pick a different number by adjusting | |
// the count of throwaway args before N. Note that this macro is preceded by | |
// an underscore--it's an implementation detail, not something we expect people | |
// to call directly. | |
#define _GET_NTH_ARG(_1, _2, _3, _4, N, ...) N | |
// Count how many args are in a variadic macro. Only works for up to N-1 args. | |
#define COUNT_VARARGS(...) _GET_NTH_ARG(__VA_ARGS__, 4, 3, 2, 1) |
#define eprintf(fmt, ...) \ | |
fprintf(stderr, fmt, __VA_ARGS__) |
#define eprintf(fmt, ...) \ | |
fprintf(stderr, fmt, ##__VA_ARGS__) |
I hereby claim:
To claim this, I am signing this object: