Minor update: convert a define to C++ constexpr.

This commit is contained in:
Stephen Anthony 2022-02-24 16:55:05 -03:30
parent 1e72dcfbcd
commit 1920d761ea
2 changed files with 5 additions and 7 deletions

View File

@ -28,9 +28,6 @@
#include "TIA.hxx"
#include "exception/FatalEmulationError.hxx"
static constexpr uInt8 COMMSTREAM = 0x20,
JUMPSTREAM_BASE = 0x21;
static constexpr bool FAST_FETCH_ON(uInt8 mode) { return (mode & 0x0F) == 0; }
static constexpr bool DIGITAL_AUDIO_ON(uInt8 mode) { return (mode & 0xF0) == 0; }

View File

@ -59,8 +59,6 @@ class System;
Thomas Jentzsch, Stephen Anthony, Bradford W. Mott
*/
#define LDAXY_OVERRIDE_INACTIVE 0xFFFF
class CartridgeCDF : public CartridgeARM
{
friend class CartridgeCDFWidget;
@ -274,6 +272,9 @@ class CartridgeCDF : public CartridgeARM
bool isPlusROM() const override { return myPlusROM->isValid(); }
private:
static constexpr uInt8 COMMSTREAM = 0x20, JUMPSTREAM_BASE = 0x21;
static constexpr uInt16 LDAXY_OVERRIDE_INACTIVE = 0xFFFF;
// The ROM image of the cartridge
ByteBuffer myImage{nullptr};