From 4b949126287ad78063830cd2022e5609d6eae6e3 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 11 Jul 2010 16:46:54 +0000 Subject: 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 --- apps/gui/skin_engine/skin_parser.c | 2 +- apps/gui/skin_engine/wps_debug.c | 2 +- apps/gui/skin_engine/wps_internals.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/gui/skin_engine') 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 #include 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 -- cgit v1.2.3