forked from len0rd/rockbox
Changed debug to DEBUGF and panic to panicf.
Also some linking changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@383 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bca0f0f5ea
commit
697dd70ac4
10 changed files with 123 additions and 129 deletions
|
|
@ -19,7 +19,23 @@
|
|||
#ifndef DEBUG_H
|
||||
#define DEBUG_H
|
||||
|
||||
void debug(char *msg);
|
||||
void debugf(char *fmt, ...);
|
||||
extern void debugf(char* fmt,...);
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
/* GCC handles ellipses in macros, which
|
||||
means we can avoid the call completely */
|
||||
#ifdef DEBUG
|
||||
#define DEBUGF(fmt,args...) debugf(fmt, ## args)
|
||||
#else
|
||||
#define DEBUGF(fmt,args...)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
void DEBUGF debugf
|
||||
|
||||
#endif /* GCC */
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue