Add peek() method

This commit is contained in:
de4dot 2012-01-22 19:33:20 +01:00
parent 8c645504fe
commit 8c946bfd34

View File

@ -232,6 +232,10 @@ namespace de4dot.blocks.cflow {
return valueStack.pop();
}
public Value peek() {
return valueStack.peek();
}
public void emulate(IEnumerable<Instr> instructions) {
foreach (var instr in instructions)
emulate(instr.Instruction);