diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-10-21 07:48:00 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-21 07:48:00 +0000 |
| commit | f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf (patch) | |
| tree | 3e58fe0c5420c5ed41e256892249ad3bd67c8e03 /firmware/debug.h | |
| parent | aeb3d0dcefdaf17e9057d283c145c9ee2c6384cd (diff) | |
| download | rockbox-f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf.zip rockbox-f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf.tar.gz rockbox-f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf.tar.bz2 rockbox-f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf.tar.xz | |
ldebugf() is only present in SIMULATOR, we set LDEBUGF to be the normal
debugf() when not building simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2728 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/debug.h')
| -rw-r--r-- | firmware/debug.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/debug.h b/firmware/debug.h index 878da29..f8aa7d4 100644 --- a/firmware/debug.h +++ b/firmware/debug.h @@ -26,13 +26,18 @@ extern void ldebugf(char* file, int line, char *fmt, ...); #ifdef __GNUC__ /* */ -#if defined(DEBUG) || defined(SIMULATOR) +#if defined(SIMULATOR) #define DEBUGF debugf #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) #else +#if defined(DEBUG) +#define DEBUGF debugf +#define LDEBUGF debugf +#else #define DEBUGF(...) #define LDEBUGF(...) #endif +#endif #else |