Use ##__VA_ARGS__ to avoid build fail
This commit is contained in:
parent
21d9c486c0
commit
6eb509beb2
1 changed files with 1 additions and 1 deletions
|
@ -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__, \
|
||||||
|
|
Loading…
Reference in a new issue