mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 06:05:21 -05:00
Compile the WPS debug functions for the sim, to make --debugwps work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19371 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
02184a242e
commit
a13c162719
2 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if defined(DEBUG) || defined(SIMULATOR)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -638,4 +638,4 @@ void print_debug_info(struct wps_data *data, enum wps_parse_error fail, int line
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG || SIMULATOR */
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ static const char *bmp_names[MAX_BITMAPS];
|
||||||
|
|
||||||
#endif /* HAVE_LCD_BITMAP */
|
#endif /* HAVE_LCD_BITMAP */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if defined(DEBUG) || defined(SIMULATOR)
|
||||||
/* debugging function */
|
/* debugging function */
|
||||||
extern void print_debug_info(struct wps_data *data, int fail, int line);
|
extern void print_debug_info(struct wps_data *data, int fail, int line);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1471,7 +1471,7 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr)
|
||||||
/* We have finished with the last viewport, so increment count */
|
/* We have finished with the last viewport, so increment count */
|
||||||
data->num_viewports++;
|
data->num_viewports++;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if defined(DEBUG) || defined(SIMULATOR)
|
||||||
print_debug_info(data, fail, line);
|
print_debug_info(data, fail, line);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue