Use proper preprocessor macro.
Some checks failed
Build Android / build_android (apk) (push) Has been cancelled
Build Android / build_android (libretro) (push) Has been cancelled
Build iOS / build_ios (push) Has been cancelled
Build JavaScript / build_js (push) Has been cancelled
Build Linux / build_linux (push) Has been cancelled
Build Linux ARM32 / build_linux_arm32 (push) Has been cancelled
Build Linux ARM64 / build_linux_arm64 (push) Has been cancelled
Build macOS / build_macos (push) Has been cancelled
Build Windows / build_windows (x86_32, Visual Studio 16 2019, installer32.nsi, win32_msvc2019, Win32) (push) Has been cancelled
Build Windows / build_windows (x86_64, Visual Studio 16 2019, installer64.nsi, win64_msvc2019_64, x64) (push) Has been cancelled
Build Windows Psf / build_windows_psf (off, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows Psf / build_windows_psf (on, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Check Format / run_clangformat (push) Has been cancelled

This commit is contained in:
Jean-Philip Desjardins 2025-02-12 14:12:37 -05:00
parent 0ab4a22725
commit e46557675b
6 changed files with 21 additions and 21 deletions

View file

@ -345,7 +345,7 @@ uint32 CDMAC::ReceiveDMA9(uint32 nSrcAddress, uint32 nCount, uint32 unused, bool
uint32 CDMAC::GetRegister(uint32 nAddress)
{
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleGet(nAddress);
#endif
@ -986,7 +986,7 @@ void CDMAC::SetRegister(uint32 nAddress, uint32 nData)
break;
}
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleSet(nAddress, nData);
#endif
}

View file

@ -299,7 +299,7 @@ uint32 CGIF::ProcessSinglePacket(const uint8* memory, uint32 memorySize, uint32
CProfilerZone profilerZone(m_gifProfilerZone);
#endif
#if defined(_DEBUG) && defined(DEBUGGER_INCLUDED)
#if LOGGING_ENABLED
CLog::GetInstance().Print(LOG_NAME, "Received GIF packet on path %d at 0x%08X of 0x%08X bytes.\r\n",
packetMetadata.pathIndex, address, end - address);
#endif
@ -322,7 +322,7 @@ uint32 CGIF::ProcessSinglePacket(const uint8* memory, uint32 memorySize, uint32
//We need to update the registers
auto tag = *reinterpret_cast<const TAG*>(&memory[address]);
address += 0x10;
#ifdef _DEBUG
#if LOGGING_ENABLED
CLog::GetInstance().Print(LOG_NAME, "TAG(loops = %d, eop = %d, pre = %d, prim = 0x%04X, cmd = %d, nreg = %d);\r\n",
tag.loops, tag.eop, tag.pre, tag.prim, tag.cmd, tag.nreg);
#endif
@ -403,7 +403,7 @@ uint32 CGIF::ProcessSinglePacket(const uint8* memory, uint32 memorySize, uint32
m_gs->ProcessWriteBuffer(&packetMetadata);
#ifdef _DEBUG
#if LOGGING_ENABLED
CLog::GetInstance().Print(LOG_NAME, "Processed 0x%08X bytes.\r\n", address - start);
#endif
@ -571,7 +571,7 @@ uint32 CGIF::GetRegister(uint32 address)
CLog::GetInstance().Warn(LOG_NAME, "Reading unknown register 0x%08X.\r\n", address);
break;
}
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleGet(address);
#endif
return result;
@ -592,7 +592,7 @@ void CGIF::SetRegister(uint32 address, uint32 value)
break;
}
}
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleSet(address, value);
#endif
}

View file

@ -141,8 +141,8 @@ void CIPU::Reset()
uint32 CIPU::GetRegister(uint32 nAddress)
{
#ifdef _DEBUG
// DisassembleGet(nAddress);
#if LOGGING_ENABLED
DisassembleGet(nAddress);
#endif
switch(nAddress)
@ -232,7 +232,7 @@ uint32 CIPU::GetRegister(uint32 nAddress)
void CIPU::SetRegister(uint32 nAddress, uint32 nValue)
{
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleSet(nAddress, nValue);
#endif
@ -253,7 +253,7 @@ void CIPU::SetRegister(uint32 nAddress, uint32 nValue)
InitializeCommand(nValue);
m_isBusy = true;
}
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleCommand(nValue);
#endif
break;

View file

@ -3377,7 +3377,7 @@ void CPS2OS::HandleTLBException()
void CPS2OS::DisassembleSysCall(uint8 func)
{
#ifdef _DEBUG
#if LOGGING_ENABLED
std::string description(GetSysCallDescription(func));
if(description.length() != 0)
{

View file

@ -181,7 +181,7 @@ uint32 CVif::GetRegister(uint32 address)
CLog::GetInstance().Warn(LOG_NAME, "Reading unknown register 0x%08X.\r\n", address);
break;
}
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleGet(address);
#endif
return result;
@ -245,7 +245,7 @@ void CVif::SetRegister(uint32 address, uint32 value)
break;
}
}
#ifdef _DEBUG
#if LOGGING_ENABLED
DisassembleSet(address, value);
#endif
}
@ -363,7 +363,7 @@ uint32 CVif::ReceiveDMA(uint32 address, uint32 qwc, uint32 unused, bool tagInclu
CProfilerZone profilerZone(m_vifProfilerZone);
#endif
#ifdef _DEBUG
#if LOGGING_ENABLED
CLog::GetInstance().Print(LOG_NAME, "vif%i : Processing packet @ 0x%08X, qwc = 0x%X, tagIncluded = %i\r\n",
m_number, address, qwc, static_cast<int>(tagIncluded));
#endif
@ -476,7 +476,7 @@ void CVif::ProcessPacket(StreamType& stream)
void CVif::ExecuteCommand(StreamType& stream, CODE nCommand)
{
#ifdef _DEBUG
#if LOGGING_ENABLED
if(m_number == 0)
{
DisassembleCommand(nCommand);

View file

@ -529,7 +529,7 @@ void CGSHandler::WritePrivRegister(uint32 nAddress, uint32 nData)
break;
}
#ifdef _DEBUG
#if LOGGING_ENABLED
if(nAddress & 0x04)
{
LogPrivateWrite(nAddress);
@ -587,7 +587,7 @@ void CGSHandler::MarkNewFrame()
OnNewFrame(m_drawCallCount);
m_drawCallCount = 0;
UpdateFrameDumpState();
#ifdef _DEBUG
#if LOGGING_ENABLED
CLog::GetInstance().Print(LOG_NAME, "Frame Done.\r\n---------------------------------------------------------------------------------\r\n");
#endif
}
@ -816,7 +816,7 @@ void CGSHandler::WriteRegisterImpl(uint8 nRegister, uint64 nData)
break;
}
#ifdef _DEBUG
#if LOGGING_ENABLED
LogWrite(nRegister, nData);
#endif
}
@ -825,7 +825,7 @@ void CGSHandler::FeedImageDataImpl(const uint8* imageData, uint32 length)
{
if(m_trxCtx.nSize == 0)
{
#ifdef _DEBUG
#if LOGGING_ENABLED
CLog::GetInstance().Warn(LOG_NAME, "Warning. Received image data when no transfer was expected.\r\n");
#endif
}
@ -843,7 +843,7 @@ void CGSHandler::FeedImageDataImpl(const uint8* imageData, uint32 length)
{
ProcessHostToLocalTransfer();
#ifdef _DEBUG
#if LOGGING_ENABLED
auto bltBuf = make_convertible<BITBLTBUF>(m_nReg[GS_REG_BITBLTBUF]);
CLog::GetInstance().Print(LOG_NAME, "Completed image transfer at 0x%08X (dirty = %d).\r\n", bltBuf.GetDstPtr(), m_trxCtx.nDirty);
#endif