summaryrefslogtreecommitdiff
path: root/apps
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 /apps
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
Diffstat (limited to 'apps')
-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)
2044 skin_buffer_free_from_front(sizeof(struct wps_token) 2044 skin_buffer_free_from_front(sizeof(struct wps_token)
2045 * (max_tokens - data->num_tokens)); 2045 * (max_tokens - data->num_tokens));
2046 2046
2047#if defined(DEBUG) || defined(SIMULATOR) 2047#ifdef DEBUG_SKIN_ENGINE
2048 if (debug) 2048 if (debug)
2049 { 2049 {
2050 print_debug_info(data, fail, line_number); 2050 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 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#if defined(DEBUG) || defined(SIMULATOR) 22#ifdef DEBUG_SKIN_ENGINE
23 23
24#include <stdio.h> 24#include <stdio.h>
25#include <string.h> 25#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);
386struct skin_viewport* find_viewport(char label, struct wps_data *data); 386struct skin_viewport* find_viewport(char label, struct wps_data *data);
387 387
388 388
389#if defined(DEBUG) || defined(SIMULATOR) 389#ifdef SIMULATOR
390#define DEBUG_SKIN_ENGINE 390#define DEBUG_SKIN_ENGINE
391extern bool debug_wps; 391extern bool debug_wps;
392#endif 392#endif