This repository has been archived on 2023-09-10. You can view files and clone it, but cannot push or open issues/pull-requests.
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), \
|
2023-09-10 07:59:51 +00:00
|
|
|
G(OPCODE_RET), \
|
2023-09-09 22:03:28 +00:00
|
|
|
G(OPCODE_MK_FUNCTION)
|
|
|
|
|
|
|
|
namespace jk
|
|
|
|
{
|
|
|
|
JK_ENUM(Opcode, OPCODES);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|