diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-24 14:46:21 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-24 14:46:21 +0000 |
| commit | 4146882277cdc2145c67b3340d9b3c83b9469148 (patch) | |
| tree | e95760879c60889a5ddbf6ac5ebc70eadd80b0d5 /lib | |
| parent | 5da84ec4da4a1e61343854aa6ee92fccbbaf3db5 (diff) | |
| download | rockbox-4146882277cdc2145c67b3340d9b3c83b9469148.zip rockbox-4146882277cdc2145c67b3340d9b3c83b9469148.tar.gz rockbox-4146882277cdc2145c67b3340d9b3c83b9469148.tar.bz2 rockbox-4146882277cdc2145c67b3340d9b3c83b9469148.tar.xz | |
dont build the debug code in ROCKBOX, save ~400bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/skin_parser/SOURCES | 2 | ||||
| -rw-r--r-- | lib/skin_parser/skin_debug.h | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/skin_parser/SOURCES b/lib/skin_parser/SOURCES index d99e63c..3024797 100644 --- a/lib/skin_parser/SOURCES +++ b/lib/skin_parser/SOURCES @@ -1,5 +1,7 @@ skin_buffer.c skin_parser.c +#ifndef ROCKBOX skin_debug.c +#endif skin_scan.c tag_table.c diff --git a/lib/skin_parser/skin_debug.h b/lib/skin_parser/skin_debug.h index 1c096ce..8fc061a 100644 --- a/lib/skin_parser/skin_debug.h +++ b/lib/skin_parser/skin_debug.h @@ -29,7 +29,7 @@ extern "C" #endif #include "skin_parser.h" - +#ifndef ROCKBOX /* Debugging functions */ void skin_error(enum skin_errorcode error); int skin_error_line(void); @@ -40,6 +40,13 @@ void skin_debug_tree(struct skin_element* root); /* Auxiliary debug functions */ void skin_debug_params(int count, struct skin_tag_parameter params[]); void skin_debug_indent(void); +#else + +#define skin_error(...) +#define skin_clear_errors() + +#endif /* !ROCKBOX */ + #ifdef __cplusplus } |