opcode_enum.h
1 
22 typedef enum {
23 #define OPCODE(opc) opc,
24 #define SIMPLE(opc) OPCODE(opc)
25 #define CONSTANT(opc,more) OPCODE(opc) OPCODE(opc ## _LONG)
26 #define OPERAND(opc,more) OPCODE(opc) OPCODE(opc ## _LONG)
27 #define JUMP(opc,sign) OPCODE(opc)
28 #define COMPLICATED(opc,more) OPCODE(opc)
29 #define CLOSURE_MORE
30 #define EXPAND_ARGS_MORE
31 #define FORMAT_VALUE_MORE
32 #define LOCAL_MORE
33 #define OVERLONG_JUMP_MORE
34 #include "opcodes.h"
35 #undef SIMPLE
36 #undef OPERANDB
37 #undef OPERAND
38 #undef CONSTANT
39 #undef JUMP
40 #undef COMPLICATED
41 #undef OVERLONG_JUMP_MORE
42 #undef CLOSURE_MORE
43 #undef LOCAL_MORE
44 #undef EXPAND_ARGS_MORE
45 #undef FORMAT_VALUE_MORE
46 #undef OPCODE
47 } KrkOpCode;