[Scummvm-cvs-logs] SF.net SVN: scummvm:[49295] tools/branches/gsoc2010-decompiler/decompiler/ simple_disassembler.h

pidgeot at users.sourceforge.net pidgeot at users.sourceforge.net
Fri May 28 22:15:53 CEST 2010


Revision: 49295
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49295&view=rev
Author:   pidgeot
Date:     2010-05-28 20:15:52 +0000 (Fri, 28 May 2010)

Log Message:
-----------
Change SimpleDisassembler to more easily allow custom opcode handling

Modified Paths:
--------------
    tools/branches/gsoc2010-decompiler/decompiler/simple_disassembler.h

Modified: tools/branches/gsoc2010-decompiler/decompiler/simple_disassembler.h
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/simple_disassembler.h	2010-05-28 16:47:30 UTC (rev 49294)
+++ tools/branches/gsoc2010-decompiler/decompiler/simple_disassembler.h	2010-05-28 20:15:52 UTC (rev 49295)
@@ -57,6 +57,7 @@
 	}
 
 #define OPCODE_BASE(val) case val:
+#define OPCODE_END break;
 
 #define OPCODE(val, name, category, stackChange, params) \
 	OPCODE_BASE(val)\
@@ -66,7 +67,7 @@
 		LAST_INST._name = std::string(name); \
 		LAST_INST._type = category; \
 		readParams(&LAST_INST, (char*)params); \
-		break;
+		OPCODE_END;
 
 #define START_SUBOPCODE(val) \
 	OPCODE_BASE(val) \
@@ -77,6 +78,6 @@
 			throw UnknownOpcodeException(_address, opcode);\
 		} \
 		INC_ADDR; \
-		break;
+		OPCODE_END;
 
 #endif


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list