summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/pokey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/pokey.c')
-rw-r--r--src/emu/sound/pokey.c32
1 files changed, 5 insertions, 27 deletions
diff --git a/src/emu/sound/pokey.c b/src/emu/sound/pokey.c
index 8a557067edc..f91a0d586d1 100644
--- a/src/emu/sound/pokey.c
+++ b/src/emu/sound/pokey.c
@@ -86,35 +86,15 @@
#define VERBOSE_POLY 0
#define VERBOSE_RAND 0
-#if VERBOSE
-#define LOG(x) logerror x
-#else
-#define LOG(x)
-#endif
+#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
-#if VERBOSE_SOUND
-#define LOG_SOUND(x) logerror x
-#else
-#define LOG_SOUND(x)
-#endif
+#define LOG_SOUND(x) do { if (VERBOSE_SOUND) logerror x; } while (0)
-#if VERBOSE_TIMER
-#define LOG_TIMER(x) logerror x
-#else
-#define LOG_TIMER(x)
-#endif
+#define LOG_TIMER(x) do { if (VERBOSE_TIMER) logerror x; } while (0)
-#if VERBOSE_POLY
-#define LOG_POLY(x) logerror x
-#else
-#define LOG_POLY(x)
-#endif
+#define LOG_POLY(x) do { if (VERBOSE_POLY) logerror x; } while (0)
-#if VERBOSE_RAND
-#define LOG_RAND(x) logerror x
-#else
-#define LOG_RAND(x)
-#endif
+#define LOG_RAND(x) do { if (VERBOSE_RAND) logerror x; } while (0)
#define CHAN1 0
#define CHAN2 1
@@ -721,7 +701,6 @@ static TIMER_CALLBACK( pokey_timer_expire )
}
}
-#if VERBOSE_SOUND
static char *audc2str(int val)
{
static char buff[80];
@@ -771,7 +750,6 @@ static char *audctl2str(int val)
strcat(buff,"+clk15");
return buff;
}
-#endif
static TIMER_CALLBACK( pokey_serin_ready )
{