From f4921d0f9d8d3bd28f68fd70eacdc565562bb5cd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 May 2015 12:15:03 -0400 Subject: dyncom: Remove unnecessary defines These can simply be const vars. --- src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/arm') diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index 81d8c7026..7ec2f3ef2 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp @@ -69,10 +69,10 @@ static void remove_exclusive(ARMul_State* state, ARMword addr){ } static int CondPassed(ARMul_State* cpu, unsigned int cond) { - #define NFLAG cpu->NFlag - #define ZFLAG cpu->ZFlag - #define CFLAG cpu->CFlag - #define VFLAG cpu->VFlag + const u32 NFLAG = cpu->NFlag; + const u32 ZFLAG = cpu->ZFlag; + const u32 CFLAG = cpu->CFlag; + const u32 VFLAG = cpu->VFlag; int temp = 0; -- cgit v1.2.3