ccm/lib/bytecode.h

17 lines
389 B
C
Raw Normal View History

2024-03-18 17:20:40 +00:00
#ifndef CCM_BYTECODE_H
#define CCM_BYTECODE_H
#include "commons.h"
#define OPCODES(G) \
G(OP_PUSH), G(OP_POP), \
G(OP_ADD), G(OP_SUB), G(OP_USUB), G(OP_MUL), \
G(OP_DIV), G(OP_POW), G(OP_MOD), G(OP_MK_TUPLE), \
2024-03-19 06:11:28 +00:00
G(OP_ASSERT_EQ), G(OP_ASSERT_NE), G(OP_BRF), G(OP_BR), \
2024-03-19 15:25:02 +00:00
G(OP_NOT), G(OP_IN), G(OP_INDEX), G(OP_EQ), G(OP_LT), \
2024-03-20 15:26:59 +00:00
G(OP_GT), G(OP_MK_ARRAY)
2024-03-18 17:20:40 +00:00
CCM_ENUM_H(Opcode, OPCODES);
#endif