Skip to content

Commit

Permalink
Merge pull request #6193 from firewave/fastdebug
Browse files Browse the repository at this point in the history
removed the remaining bits of the FASTDEBUG/MAME_DEBUG_FAST silliness…
  • Loading branch information
rb6502 committed Jan 21, 2020
2 parents aa2fa1d + bb3b73e commit ddf571d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
5 changes: 0 additions & 5 deletions makefile
Expand Up @@ -94,7 +94,6 @@
# LTO = 1
# SSE2 = 1
# OPENMP = 1
# FASTDEBUG = 1

# SEPARATE_BIN = 1
# PYTHON_EXECUTABLE = python3
Expand Down Expand Up @@ -810,10 +809,6 @@ ifdef OPENMP
PARAMS += --OPENMP='$(OPENMP)'
endif

ifdef FASTDEBUG
PARAMS += --FASTDEBUG='$(FASTDEBUG)'
endif

ifdef SEPARATE_BIN
PARAMS += --SEPARATE_BIN='$(SEPARATE_BIN)'
endif
Expand Down
16 changes: 0 additions & 16 deletions scripts/genie.lua
Expand Up @@ -337,15 +337,6 @@ newoption {
}
}

newoption {
trigger = "FASTDEBUG",
description = "Fast DEBUG.",
allowed = {
{ "0", "Disabled" },
{ "1", "Enabled" },
}
}

newoption {
trigger = "SEPARATE_BIN",
description = "Use separate bin folders.",
Expand Down Expand Up @@ -620,13 +611,6 @@ configuration { "Debug" }
-- "BGFX_CONFIG_DEBUG=1",
}

if _OPTIONS["FASTDEBUG"]=="1" then
defines {
"MAME_DEBUG_FAST",
"NDEBUG",
}
end

configuration { }

if _OPTIONS["PROFILER"]=="1" then
Expand Down
4 changes: 2 additions & 2 deletions src/emu/emucore.h
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ddf571d

Please sign in to comment.