Commit 1a4b56e9 authored by Paul's avatar Paul
Browse files

Add get_operation command

parent 661e6287
......@@ -15,6 +15,8 @@ namespace rtg {
struct program_impl;
const operation& get_operation(instruction_ref ins);
/**
* @brief Stores the instruction stream
*/
......
......@@ -12,6 +12,11 @@ struct program_impl
std::list<instruction> instructions;
};
const operation& get_operation(instruction_ref ins)
{
return ins->op;
}
program::program() : impl(std::make_unique<program_impl>()) {}
program::program(program&&) noexcept = default;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment