Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
debug_visitor.hpp File Reference
#include <sysio/vm/interpret_visitor.hpp>
#include <sysio/vm/opcodes.hpp>
#include <iostream>
Include dependency graph for debug_visitor.hpp:

Go to the source code of this file.

Classes

struct  sysio::vm::debug_visitor< ExecutionCTX >
 
struct  sysio::vm::debug_visitor2
 

Namespaces

namespace  sysio
 
namespace  sysio::vm
 

Macros

#define DBG_VISIT(name, code)
 
#define DBG2_VISIT(name, code)
 

Macro Definition Documentation

◆ DBG2_VISIT

#define DBG2_VISIT ( name,
code )
Value:
void operator()(const SYS_VM_OPCODE_T(name)& op) { std::cout << "Found " << #name << "\n"; }
std::string name
#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:
void operator()(const SYS_VM_OPCODE_T(name)& op) { \
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 }