Hallo, I'm currently doing some code restructuring in avrdude.
Now I want to encapsulate the fprintf(stderr, ...) statments by a macro, lets say PRINTF. There are two ways to do this: a) C99 style: #define PRINTF(fmt, ...) avrdude_message(fmt, __VA_ARGS__) Usage: PRINTF("foo=%d", 42); b) with double braces (works also with none C99 compilers) #define PRINTF(args) avrdude_message args Usage: PRINTF(("foo=%d", 42)); My question: Is there anybody building avrdude with a none-C99 compiler, e.g. MS Visual C? Which one would be the preffered solution a) or b). Regards Axel _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev