mirror of
https://github.com/holub/mame
synced 2025-07-02 08:39:21 +03:00
util/cdrom.h: Fixed size of track info array.
Also made it possible to enable VERBOSE in cdrom.cpp without link errors.
This commit is contained in:
parent
c99190e0d1
commit
44d45a6342
@ -34,7 +34,6 @@
|
||||
/** @brief The verbose. */
|
||||
#define VERBOSE (0)
|
||||
#define EXTRA_VERBOSE (0)
|
||||
#if VERBOSE
|
||||
|
||||
/**
|
||||
* @def LOG(x) do
|
||||
@ -44,31 +43,7 @@
|
||||
* @param x The void to process.
|
||||
*/
|
||||
|
||||
#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
|
||||
|
||||
/**
|
||||
* @fn void CLIB_DECL logerror(const char *text, ...) ATTR_PRINTF(1,2);
|
||||
*
|
||||
* @brief Logerrors the given text.
|
||||
*
|
||||
* @param text The text.
|
||||
*
|
||||
* @return A CLIB_DECL.
|
||||
*/
|
||||
|
||||
void CLIB_DECL logerror(const char *text, ...) ATTR_PRINTF(1,2);
|
||||
#else
|
||||
|
||||
/**
|
||||
* @def LOG(x);
|
||||
*
|
||||
* @brief A macro that defines log.
|
||||
*
|
||||
* @param x The void to process.
|
||||
*/
|
||||
|
||||
#define LOG(x)
|
||||
#endif
|
||||
#define LOG(x) do { if (VERBOSE) { osd_printf_info x; } } while (0)
|
||||
|
||||
|
||||
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
{
|
||||
uint32_t numtrks; /* number of tracks */
|
||||
uint32_t flags; /* see FLAG_ above */
|
||||
track_info tracks[MAX_TRACKS];
|
||||
track_info tracks[MAX_TRACKS + 1];
|
||||
};
|
||||
|
||||
struct track_input_entry
|
||||
|
Loading…
Reference in New Issue
Block a user