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" { #endif +#if !defined(ROCKBOX) || defined(__PCTOOL__) +#define SKINPARSER_DEBUG +#endif + #include "skin_parser.h" -#ifndef ROCKBOX +#ifdef SKINPARSER_DEBUG /* Debugging functions */ void skin_error(enum skin_errorcode error, char* cursor); int skin_error_line(void); @@ -37,6 +41,7 @@ int skin_error_col(void); char* skin_error_message(void); void skin_clear_errors(void); void skin_debug_tree(struct skin_element* root); +void skin_error_format_message(); /* Auxiliary debug functions */ void skin_debug_params(int count, struct skin_tag_parameter params[]); @@ -46,7 +51,7 @@ void skin_debug_indent(void); #define skin_error(...) #define skin_clear_errors() -#endif /* !ROCKBOX */ +#endif /* SKINPARSER_DEBUG */ #ifdef __cplusplus |