2004-12-29 Martin Baulig <martin@ximian.com>
[mono.git] / mono / metadata / opcodes.h
index ee3e093a51242675bda979c8a4b704a188dc5baf..60c6a53e036d605576c64753dfb4a34da920756f 100644 (file)
  * (C) 2002 Ximian, Inc.
  */
 
+#include <glib.h>
+
+#define MONO_CUSTOM_PREFIX 0xf0
+
 #define OPDEF(a,b,c,d,e,f,g,h,i,j) \
-       MONO_ ## a = ((g-1)<<8) | i,
+       MONO_ ## a,
 
 typedef enum {
 #include "mono/cil/opcode.def"
-       MONO_CEE_LAST = MONO_CEE_UNUSED70 + 2
+       MONO_CEE_LAST
 } MonoOpcodeEnum;
 
 #undef OPDEF
@@ -56,9 +60,12 @@ typedef struct {
        unsigned short opval;
 } MonoOpcode;
 
-#define MONO_N_OPCODES 300
+extern const MonoOpcode mono_opcodes [];
+
+const char*
+mono_opcode_name (int opcode);
 
-extern const MonoOpcode mono_opcodes [MONO_N_OPCODES];
-extern const char* const mono_opcode_names [MONO_N_OPCODES];
+MonoOpcodeEnum
+mono_opcode_value (const guint8 **ip, const guint8 *end);
 
 #endif /* __MONO_METADATA_OPCODES_H__ */