#include <sysio/vm/interpret_visitor.hpp>
#include <sysio/vm/opcodes.hpp>
#include <iostream>
Go to the source code of this file.
◆ DBG2_VISIT
#define DBG2_VISIT |
( |
| name, |
|
|
| code ) |
Value:
#define SYS_VM_OPCODE_T(name)
Definition at line 15 of file debug_visitor.hpp.
15#define DBG2_VISIT(name, code) \
16 void operator()(const SYS_VM_OPCODE_T(name)& op) { std::cout << "Found " << #name << "\n"; }
◆ DBG_VISIT
#define DBG_VISIT |
( |
| name, |
|
|
| code ) |
Value:
std::cout <<
"Found " << #
name <<
" at " << get_context().get_pc() <<
"\n"; \
interpret_visitor<ExecutionCTX>::operator()(
op); \
get_context().print_stack(); \
}
Definition at line 8 of file debug_visitor.hpp.
8#define DBG_VISIT(name, code) \
9 void operator()(const SYS_VM_OPCODE_T(name)& op) { \
10 std::cout << "Found " << #name << " at " << get_context().get_pc() << "\n"; \
11 interpret_visitor<ExecutionCTX>::operator()(op); \
12 get_context().print_stack(); \
13 }