summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emucore.h
diff options
context:
space:
mode:
author firewave <firewave@users.noreply.github.com>2020-01-21 20:20:20 +0100
committer firewave <firewave@users.noreply.github.com>2020-01-21 20:20:20 +0100
commitbb3b73e58b75a9c1a02150a50967aa90ced9e3ec (patch)
tree484e163b810804a21acbda7dcaf755554164ec91 /src/emu/emucore.h
parente9f8bab291ce82f356f8dfa1e3a9865ffeb59a8f (diff)
removed the remaining bits of the FASTDEBUG/MAME_DEBUG_FAST silliness I introduced ages ago (nw)
Diffstat (limited to 'src/emu/emucore.h')
-rw-r--r--src/emu/emucore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/emucore.h b/src/emu/emucore.h
index ef6713c8d8f..2c29c0ce5be 100644
--- a/src/emu/emucore.h
+++ b/src/emu/emucore.h
@@ -308,7 +308,7 @@ inline std::enable_if_t<!std::is_base_of<device_t, Source>::value> report_bad_ca
template <typename Dest, typename Source>
inline Dest downcast(Source *src)
{
-#if defined(MAME_DEBUG) && !defined(MAME_DEBUG_FAST)
+#if defined(MAME_DEBUG)
Dest const chk(dynamic_cast<Dest>(src));
if (chk != src) report_bad_cast<std::remove_pointer_t<Dest>, Source>(src);
#endif
@@ -318,7 +318,7 @@ inline Dest downcast(Source *src)
template<class Dest, class Source>
inline Dest downcast(Source &src)
{
-#if defined(MAME_DEBUG) && !defined(MAME_DEBUG_FAST)
+#if defined(MAME_DEBUG)
std::remove_reference_t<Dest> *const chk(dynamic_cast<std::remove_reference_t<Dest> *>(&src));
if (chk != &src) report_bad_cast<std::remove_reference_t<Dest>, Source>(&src);
#endif