Use ##__VA_ARGS__ to avoid build fail

This commit is contained in:
ChangZhuo Chen (陳昌倬) 2014-07-04 18:26:32 +08:00
parent 21d9c486c0
commit 6eb509beb2

View file

@ -23,7 +23,7 @@ typedef unsigned char bool;
#ifdef DEBUG #ifdef DEBUG
#define info(fmt, ...) \ #define info(fmt, ...) \
do { fprintf(stderr, fmt, __VA_ARGS__); } while (0) do { fprintf(stderr, fmt, ##__VA_ARGS__); } while (0)
#define debug(fmt, ...) \ #define debug(fmt, ...) \
do { fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \ do { fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \