1
0
Fork 0
forked from len0rd/rockbox

Snapshot of file writing code. Bugs remain. Only short names are supported yet.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-10-20 22:50:58 +00:00
parent 1df1e51a03
commit b7b48fea02
10 changed files with 613 additions and 295 deletions

View file

@ -21,20 +21,24 @@
extern void debug_init(void);
extern void debugf(char* fmt,...);
extern void ldebugf(char* file, int line, char *fmt, ...);
#ifdef __GNUC__
/* */
#if defined(DEBUG) || defined(SIMULATOR)
//#define DEBUGF(...) debugf(__VA_ARGS__)
#define DEBUGF debugf
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
#else
#define DEBUGF(...)
#define LDEBUGF(...)
#endif
#else
#define DEBUGF debugf
#define LDEBUGF debugf
#endif /* GCC */