2023-09-20 11:31:35 +00:00
|
|
|
#ifndef fk_OPCODES_HPP
|
|
|
|
#define fk_OPCODES_HPP
|
|
|
|
|
2023-09-20 15:17:13 +00:00
|
|
|
#define OPCODES(G) G(OP_LOAD_CONST), G(OP_POP), G(OP_CALL_NATIVE), \
|
2023-09-21 19:17:39 +00:00
|
|
|
G(OP_LOAD_GLOBAL), G(OP_LOAD_LOCAL), G(OP_STORE_LOCAL), \
|
2023-09-21 21:30:51 +00:00
|
|
|
G(OP_MAKE_FUNCTION), G(OP_CALL_REF), G(OP_RET), G(OP_BNE), \
|
|
|
|
G(OP_BR)
|
2023-09-20 11:31:35 +00:00
|
|
|
|
|
|
|
#include "commons.hpp"
|
|
|
|
|
|
|
|
namespace fk
|
|
|
|
{
|
|
|
|
FK_ENUM(Opcode, OPCODES);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|