1
0
Fork 0
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:
Björn Stenberg 2002-05-02 14:05:51 +00:00
parent bca0f0f5ea
commit 697dd70ac4
10 changed files with 123 additions and 129 deletions

View file

@ -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