diff --git a/src/emu/clifront.c b/src/emu/clifront.c index 61764f90f42..9499fc88175 100644 --- a/src/emu/clifront.c +++ b/src/emu/clifront.c @@ -276,7 +276,7 @@ int cli_frontend::execute(int argc, char **argv) _7z_file_cache_clear(); -#if MAME_DEBUG +#ifdef MAME_DEBUG // TODO: this will only be printed when the executable is exited and not when selecting a new set via the internal UI - it needs to be placed somewhere else where it can be printed and reset after each run (check Average Speed location) if (*(m_options.command()) == 0) mame_printf_info("%d tagmap lookups\n", g_tagmap_finds); diff --git a/src/lib/util/tagmap.c b/src/lib/util/tagmap.c index cb2bfd9f4de..5a447a49487 100644 --- a/src/lib/util/tagmap.c +++ b/src/lib/util/tagmap.c @@ -10,6 +10,6 @@ #include "tagmap.h" -#if MAME_DEBUG +#ifdef MAME_DEBUG INT32 g_tagmap_finds = 0; #endif \ No newline at end of file diff --git a/src/lib/util/tagmap.h b/src/lib/util/tagmap.h index 87e4f4185d9..07acdaa26da 100644 --- a/src/lib/util/tagmap.h +++ b/src/lib/util/tagmap.h @@ -15,7 +15,7 @@ #include "osdcore.h" #include "astring.h" -#if MAME_DEBUG +#ifdef MAME_DEBUG #include "eminline.h" #endif @@ -32,7 +32,7 @@ enum tagmap_error }; -#if MAME_DEBUG +#ifdef MAME_DEBUG extern INT32 g_tagmap_finds; #endif @@ -132,7 +132,7 @@ public: // find by tag with precomputed hash _ElementType find(const char *tag, UINT32 fullhash) const { -#if MAME_DEBUG +#ifdef MAME_DEBUG atomic_increment32(&g_tagmap_finds); #endif for (entry_t *entry = m_table[fullhash % ARRAY_LENGTH(m_table)]; entry != NULL; entry = entry->next()) @@ -144,7 +144,7 @@ public: // find by tag without checking anything but the hash _ElementType find_hash_only(const char *tag) const { -#if MAME_DEBUG +#ifdef MAME_DEBUG atomic_increment32(&g_tagmap_finds); #endif UINT32 fullhash = hash(tag);