diff options
Diffstat (limited to 'lib/skin_parser/skin_debug.h')
-rw-r--r-- | lib/skin_parser/skin_debug.h | 9 |
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 */ |
34 | void skin_error(enum skin_errorcode error, char* cursor); | 38 | void skin_error(enum skin_errorcode error, char* cursor); |
35 | int skin_error_line(void); | 39 | int skin_error_line(void); |
@@ -37,6 +41,7 @@ int skin_error_col(void); | |||
37 | char* skin_error_message(void); | 41 | char* skin_error_message(void); |
38 | void skin_clear_errors(void); | 42 | void skin_clear_errors(void); |
39 | void skin_debug_tree(struct skin_element* root); | 43 | void skin_debug_tree(struct skin_element* root); |
44 | void skin_error_format_message(); | ||
40 | 45 | ||
41 | /* Auxiliary debug functions */ | 46 | /* Auxiliary debug functions */ |
42 | void skin_debug_params(int count, struct skin_tag_parameter params[]); | 47 | void 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 |