summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_debug.h')
-rw-r--r--lib/skin_parser/skin_debug.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/skin_parser/skin_debug.h b/lib/skin_parser/skin_debug.h
index fbff5cbb4c..c3538083d2 100644
--- a/lib/skin_parser/skin_debug.h
+++ b/lib/skin_parser/skin_debug.h
@@ -28,8 +28,12 @@ extern "C"
28{ 28{
29#endif 29#endif
30 30
31#if !defined(ROCKBOX) || defined(__PCTOOL__)
32#define SKINPARSER_DEBUG
33#endif
34
31#include "skin_parser.h" 35#include "skin_parser.h"
32#ifndef ROCKBOX 36#ifdef SKINPARSER_DEBUG
33/* Debugging functions */ 37/* Debugging functions */
34void skin_error(enum skin_errorcode error, char* cursor); 38void skin_error(enum skin_errorcode error, char* cursor);
35int skin_error_line(void); 39int skin_error_line(void);
@@ -37,6 +41,7 @@ int skin_error_col(void);
37char* skin_error_message(void); 41char* skin_error_message(void);
38void skin_clear_errors(void); 42void skin_clear_errors(void);
39void skin_debug_tree(struct skin_element* root); 43void skin_debug_tree(struct skin_element* root);
44void skin_error_format_message();
40 45
41/* Auxiliary debug functions */ 46/* Auxiliary debug functions */
42void skin_debug_params(int count, struct skin_tag_parameter params[]); 47void skin_debug_params(int count, struct skin_tag_parameter params[]);
@@ -46,7 +51,7 @@ void skin_debug_indent(void);
46#define skin_error(...) 51#define skin_error(...)
47#define skin_clear_errors() 52#define skin_clear_errors()
48 53
49#endif /* !ROCKBOX */ 54#endif /* SKINPARSER_DEBUG */
50 55
51 56
52#ifdef __cplusplus 57#ifdef __cplusplus