summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2007-12-31 02:04:39 +0000
committer Aaron Giles <aaron@aarongiles.com>2007-12-31 02:04:39 +0000
commit460437f8d13a49302d5ce11cf5ba613083e4780a (patch)
treefcc6a7819ef6078d7ba6925e368438e33d62d06e /src/emu/video.c
parent3f6e8e1abfc478371e1e6f1a9cd317fbf5460424 (diff)
(From Atari Ace)
The attached patch adjusts most conditional logging in MAME to use the idiom "do { if (VERBOSE) logerror x; } while (0)". This has the benefit that the compiler checks the syntax of the logging even in the case it will be eliminated, and in fact a number of cases here needed adjustments to compile because of this.
Diffstat (limited to 'src/emu/video.c')
-rw-r--r--src/emu/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/video.c b/src/emu/video.c
index fd7324c785c..408a91af7f7 100644
--- a/src/emu/video.c
+++ b/src/emu/video.c
@@ -28,7 +28,8 @@
***************************************************************************/
#define LOG_THROTTLE (0)
-#define LOG_PARTIAL_UPDATES(x) /* logerror x */
+#define VERBOSE (0)
+#define LOG_PARTIAL_UPDATES(x) do { if (VERBOSE) logerror x; } while (0)