pcsx2: don't use 0&& to remove code

It works but compiler is not happy because it is still parsing the full line.
This commit is contained in:
Gregory Hainaut 2014-07-12 12:50:29 +02:00
parent f3d03b025a
commit c73ce3d02d
4 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ using namespace Threading;
#if 0 //PCSX2_DEBUG #if 0 //PCSX2_DEBUG
# define MTGS_LOG Console.WriteLn # define MTGS_LOG Console.WriteLn
#else #else
# define MTGS_LOG 0&& # define MTGS_LOG(...) do {} while (0)
#endif #endif
// forces the compiler to treat a non-volatile value as volatile. // forces the compiler to treat a non-volatile value as volatile.

View File

@ -42,9 +42,9 @@ void ProfilerTerminateSource( const wxString& Name );
#define ProfilerInit() (void)0 #define ProfilerInit() (void)0
#define ProfilerTerm() (void)0 #define ProfilerTerm() (void)0
#define ProfilerSetEnabled 0&& #define ProfilerSetEnabled(...) (void)0
#define ProfilerRegisterSource 0&& #define ProfilerRegisterSource(...) (void)0
#define ProfilerTerminateSource 0&& #define ProfilerTerminateSource(...) (void)0
#endif #endif

View File

@ -26,7 +26,7 @@ static VURegs& vu0Regs = vuRegs[0];
using namespace R5900::Dynarec; using namespace R5900::Dynarec;
#define printCOP2 0&& #define printCOP2(...) (void)0
//#define printCOP2 DevCon.Status //#define printCOP2 DevCon.Status
void setupMacroOp(int mode, const char* opName) { void setupMacroOp(int mode, const char* opName) {

View File

@ -339,7 +339,7 @@ static void SuperVUEliminateDeadCode();
static void SuperVUAssignRegs(); static void SuperVUAssignRegs();
//void SuperVUFreeXMMreg(int xmmreg, int xmmtype, int reg); //void SuperVUFreeXMMreg(int xmmreg, int xmmtype, int reg);
#define SuperVUFreeXMMreg 0&& #define SuperVUFreeXMMreg(...) (void)0
void SuperVUFreeXMMregs(u32* livevars); void SuperVUFreeXMMregs(u32* livevars);
static u32* SuperVUStaticAlloc(u32 size); static u32* SuperVUStaticAlloc(u32 size);