Instruction.cpp 319 B

123456789101112131415
  1. #include "Instruction.h"
  2. Instruction::Instruction(int args, void (*f) (int, Stack<shared_ptr<Data>>&, shared_ptr<Data>), shared_ptr<Data> data) : args(args), function(f), data(data)
  3. {
  4. }
  5. Instruction::~Instruction()
  6. {
  7. }
  8. void Instruction::execute(Stack< shared_ptr<Data> >& st) const
  9. {
  10. function(args, st, data);
  11. }