Fixed red build
[kugel-rb.git] / firmware / debug.h
blobf8aa7d41134cac490c1f9bbf4cbaece82b778c45
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef DEBUG_H
20 #define DEBUG_H
22 extern void debug_init(void);
23 extern void debugf(char* fmt,...);
24 extern void ldebugf(char* file, int line, char *fmt, ...);
26 #ifdef __GNUC__
28 /* */
29 #if defined(SIMULATOR)
30 #define DEBUGF debugf
31 #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
32 #else
33 #if defined(DEBUG)
34 #define DEBUGF debugf
35 #define LDEBUGF debugf
36 #else
37 #define DEBUGF(...)
38 #define LDEBUGF(...)
39 #endif
40 #endif
43 #else
45 #define DEBUGF debugf
46 #define LDEBUGF debugf
48 #endif /* GCC */
51 #endif