forked from len0rd/rockbox
Changed from gcc extension to C99 varargs macros
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@576 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
28bdaca814
commit
e6564e2005
1 changed files with 3 additions and 4 deletions
|
@ -23,12 +23,11 @@ extern void debugf(char* fmt,...);
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
||||||
/* GCC handles ellipses in macros, which
|
/* */
|
||||||
means we can avoid the call completely */
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DEBUGF(fmt,args...) debugf(fmt, ## args)
|
#define DEBUGF(...) debugf(__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define DEBUGF(fmt,args...)
|
#define DEBUGF(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue