20 lines
451 B
C++
20 lines
451 B
C++
|
#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_MK_FUNCTION)
|
||
|
|
||
|
namespace jk
|
||
|
{
|
||
|
JK_ENUM(Opcode, OPCODES);
|
||
|
}
|
||
|
|
||
|
#endif
|