fixed non-DEBUG build (nw)

This commit is contained in:
Oliver Stöneberg 2014-02-21 10:54:07 +00:00
parent 891839aade
commit c6f92ae843
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -10,6 +10,6 @@
#include "tagmap.h"
#if MAME_DEBUG
#ifdef MAME_DEBUG
INT32 g_tagmap_finds = 0;
#endif

View File

@ -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);