public void DemandSize(int count, OpCode oc) { if(this.Count < count) { throw new StackException( string.Format("not enough data on the stack to execute opcode: {0}", oc.Name)); } }
public OpCodeException(string msg, OpCode oc) : base(string.Format("OpCode Exception ({0}): {1} - OpCode: {2}", oc.Line, msg, oc.Name)) { }
public OpCodeArgumentException(int index, HVMType type, OpCode oc) : base(string.Format("OpCode Argument Exception ({0}): Argument {1} must be of type {2} - OpCode: {3}", oc.Line, index, type.ToString(), oc.Name)) { }