summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-11 16:46:54 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-11 16:46:54 +0000
commit4b949126287ad78063830cd2022e5609d6eae6e3 (patch)
tree15b38adafbff9f93911aa16357193fd52ef1d1b9
parentaa3c676945df2e042c8963aabfea750b4afe4ec9 (diff)
downloadrockbox-4b949126287ad78063830cd2022e5609d6eae6e3.tar.gz
rockbox-4b949126287ad78063830cd2022e5609d6eae6e3.zip
enable skin debug only in the simulator
it's controled by sim --debugwps option git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27389 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_parser.c2
-rw-r--r--apps/gui/skin_engine/wps_debug.c2
-rw-r--r--apps/gui/skin_engine/wps_internals.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index b9254d9dbd..cca2c956b7 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -2044,7 +2044,7 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr, bool debug)
skin_buffer_free_from_front(sizeof(struct wps_token)
* (max_tokens - data->num_tokens));
-#if defined(DEBUG) || defined(SIMULATOR)
+#ifdef DEBUG_SKIN_ENGINE
if (debug)
{
print_debug_info(data, fail, line_number);
diff --git a/apps/gui/skin_engine/wps_debug.c b/apps/gui/skin_engine/wps_debug.c
index a1ebb837d0..1bb9fbe79f 100644
--- a/apps/gui/skin_engine/wps_debug.c
+++ b/apps/gui/skin_engine/wps_debug.c
@@ -19,7 +19,7 @@
*
****************************************************************************/
-#if defined(DEBUG) || defined(SIMULATOR)
+#ifdef DEBUG_SKIN_ENGINE
#include <stdio.h>
#include <string.h>
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index 4ef860a8b7..f3f83370f4 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -386,7 +386,7 @@ struct gui_img* find_image(char label, struct wps_data *data);
struct skin_viewport* find_viewport(char label, struct wps_data *data);
-#if defined(DEBUG) || defined(SIMULATOR)
+#ifdef SIMULATOR
#define DEBUG_SKIN_ENGINE
extern bool debug_wps;
#endif