roza/lib/opcodes.hpp

19 lines
357 B
C++
Raw Normal View History

2023-08-30 18:06:26 +00:00
#ifndef roza_OPCODES_HPP
#define roza_OPCODES_HPP
#include "commons.hpp"
#define OPCODE(G) \
G(OP_PUSH_CONST), \
2023-08-30 22:31:19 +00:00
G(OP_POP), \
G(OP_IADD), G(OP_ISUB), G(OP_IMUL), G(OP_IDIV), G(OP_IMOD), G(OP_IPOW), \
2023-08-31 09:07:03 +00:00
G(OP_MOD), G(OP_IUADD), G(OP_IUSUB), G(OP_AND), G(OP_OR), G(OP_NOT), \
G(OP_IMP)
2023-08-30 18:06:26 +00:00
namespace roza
{
MAKE_ENUM(OPCODE, Opcode)
}
#endif