From bb3b73e58b75a9c1a02150a50967aa90ced9e3ec Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 21 Jan 2020 20:20:20 +0100 Subject: [PATCH] removed the remaining bits of the FASTDEBUG/MAME_DEBUG_FAST silliness I introduced ages ago (nw) --- makefile | 5 ----- scripts/genie.lua | 16 ---------------- src/emu/emucore.h | 4 ++-- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/makefile b/makefile index 5d717c234ef..f3e3810f437 100644 --- a/makefile +++ b/makefile @@ -94,7 +94,6 @@ # LTO = 1 # SSE2 = 1 # OPENMP = 1 -# FASTDEBUG = 1 # SEPARATE_BIN = 1 # PYTHON_EXECUTABLE = python3 @@ -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 diff --git a/scripts/genie.lua b/scripts/genie.lua index 7f9cffb4064..a0bb95f83a6 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -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.", @@ -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 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::value> report_bad_ca template inline Dest downcast(Source *src) { -#if defined(MAME_DEBUG) && !defined(MAME_DEBUG_FAST) +#if defined(MAME_DEBUG) Dest const chk(dynamic_cast(src)); if (chk != src) report_bad_cast, Source>(src); #endif @@ -318,7 +318,7 @@ inline Dest downcast(Source *src) template inline Dest downcast(Source &src) { -#if defined(MAME_DEBUG) && !defined(MAME_DEBUG_FAST) +#if defined(MAME_DEBUG) std::remove_reference_t *const chk(dynamic_cast *>(&src)); if (chk != &src) report_bad_cast, Source>(&src); #endif