From 149582abd9d02763fa30ed8de07ab381b60a3722 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Mon, 27 Jan 2020 13:29:15 -0330 Subject: [PATCH] Minor cleanup; exclude some debugger-only methods in non-debugger mode. --- src/emucore/M6532.cxx | 2 +- src/emucore/M6532.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emucore/M6532.cxx b/src/emucore/M6532.cxx index 10bd5e813..dec6d9981 100644 --- a/src/emucore/M6532.cxx +++ b/src/emucore/M6532.cxx @@ -422,6 +422,7 @@ bool M6532::load(Serializer& in) return true; } +#ifdef DEBUGGER_SUPPORT // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uInt8 M6532::intim() { @@ -456,7 +457,6 @@ uInt32 M6532::timerClocks() const return uInt32(mySystem->cycles() - mySetTimerCycle); } -#ifdef DEBUGGER_SUPPORT // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void M6532::createAccessBases() { diff --git a/src/emucore/M6532.hxx b/src/emucore/M6532.hxx index 327a39651..bbda58e31 100644 --- a/src/emucore/M6532.hxx +++ b/src/emucore/M6532.hxx @@ -135,6 +135,7 @@ class M6532 : public Device void setTimerRegister(uInt8 data, uInt8 interval); void setPinState(bool shcha); +#ifdef DEBUGGER_SUPPORT // The following are used by the debugger to read INTIM/TIMINT // We need separate methods to do this, so the state of the system // isn't changed @@ -143,7 +144,6 @@ class M6532 : public Device Int32 intimClocks(); uInt32 timerClocks() const; - #ifdef DEBUGGER_SUPPORT void createAccessBases(); /** @@ -159,7 +159,7 @@ class M6532 : public Device @param flags A bitfield of DisasmType directives for the given address */ void setAccessFlags(uInt16 address, uInt8 flags) override; - #endif // DEBUGGER_SUPPORT +#endif // DEBUGGER_SUPPORT private: // Reference to the console