mirror of
https://github.com/holub/mame
synced 2025-06-25 05:44:23 +03:00
fixed non-DEBUG build (nw)
This commit is contained in:
parent
891839aade
commit
c6f92ae843
@ -276,7 +276,7 @@ int cli_frontend::execute(int argc, char **argv)
|
|||||||
|
|
||||||
_7z_file_cache_clear();
|
_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)
|
// 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)
|
if (*(m_options.command()) == 0)
|
||||||
mame_printf_info("%d tagmap lookups\n", g_tagmap_finds);
|
mame_printf_info("%d tagmap lookups\n", g_tagmap_finds);
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
|
|
||||||
#include "tagmap.h"
|
#include "tagmap.h"
|
||||||
|
|
||||||
#if MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
INT32 g_tagmap_finds = 0;
|
INT32 g_tagmap_finds = 0;
|
||||||
#endif
|
#endif
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include "osdcore.h"
|
#include "osdcore.h"
|
||||||
#include "astring.h"
|
#include "astring.h"
|
||||||
#if MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
#include "eminline.h"
|
#include "eminline.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ enum tagmap_error
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#if MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
extern INT32 g_tagmap_finds;
|
extern INT32 g_tagmap_finds;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ public:
|
|||||||
// find by tag with precomputed hash
|
// find by tag with precomputed hash
|
||||||
_ElementType find(const char *tag, UINT32 fullhash) const
|
_ElementType find(const char *tag, UINT32 fullhash) const
|
||||||
{
|
{
|
||||||
#if MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
atomic_increment32(&g_tagmap_finds);
|
atomic_increment32(&g_tagmap_finds);
|
||||||
#endif
|
#endif
|
||||||
for (entry_t *entry = m_table[fullhash % ARRAY_LENGTH(m_table)]; entry != NULL; entry = entry->next())
|
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
|
// find by tag without checking anything but the hash
|
||||||
_ElementType find_hash_only(const char *tag) const
|
_ElementType find_hash_only(const char *tag) const
|
||||||
{
|
{
|
||||||
#if MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
atomic_increment32(&g_tagmap_finds);
|
atomic_increment32(&g_tagmap_finds);
|
||||||
#endif
|
#endif
|
||||||
UINT32 fullhash = hash(tag);
|
UINT32 fullhash = hash(tag);
|
||||||
|
Loading…
Reference in New Issue
Block a user