Add peek() method
This commit is contained in:
parent
8c645504fe
commit
8c946bfd34
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user