dont build the debug code in ROCKBOX, save ~400bytes
[kugel-rb.git] / lib / skin_parser / skin_debug.h
blob8fc061a9f9a7c6059f3bb802d813d02e3a3732f2
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Robert Bieber
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
23 #ifndef SKIN_DEBUG_H
24 #define SKIN_DEBUG_H
26 #ifdef __cplusplus
27 extern "C"
29 #endif
31 #include "skin_parser.h"
32 #ifndef ROCKBOX
33 /* Debugging functions */
34 void skin_error(enum skin_errorcode error);
35 int skin_error_line(void);
36 char* skin_error_message(void);
37 void skin_clear_errors(void);
38 void skin_debug_tree(struct skin_element* root);
40 /* Auxiliary debug functions */
41 void skin_debug_params(int count, struct skin_tag_parameter params[]);
42 void skin_debug_indent(void);
43 #else
45 #define skin_error(...)
46 #define skin_clear_errors()
48 #endif /* !ROCKBOX */
51 #ifdef __cplusplus
53 #endif
55 #endif // SKIN_DEBUG_H