This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
joko/lib/Opcodes.hpp

24 lines
651 B
C++
Raw Normal View History

2023-09-09 22:03:28 +00:00
#ifndef jk_OPCODES_HPP
#define jk_OPCODES_HPP
#include "commons.hpp"
#define OPCODES(G) \
G(OPCODE_PUSH_CONST), \
G(OPCODE_CALL), \
G(OPCODE_LOAD), \
G(OPCODE_STORE), \
G(OPCODE_LOAD_GLOBAL), \
G(OPCODE_RET), \
2023-09-10 14:16:20 +00:00
G(OPCODE_BRF), \
G(OPCODE_BR), \
G(OPCODE_NOT), \
2023-09-09 22:03:28 +00:00
G(OPCODE_MK_FUNCTION)
namespace jk
{
JK_ENUM(Opcode, OPCODES);
}
#endif