forked from len0rd/rockbox
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
This commit is contained in:
parent
aeb3d0dcef
commit
f45345edd9
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue