diff --git a/src/main.rs b/src/main.rs index 7037b29..c6182e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,11 +64,10 @@ fn main () -> Result <(), state::StepError> { vm.debug_print = true; } - let max_iters = 2000; let mut in_break = false; let mut last_input = String::new (); - for _ in 0..max_iters { + loop { if in_break || breakpoints.iter ().any (|bp| vm.at_breakpoint (bp)) { in_break = true; dbg! (&vm.stack); diff --git a/src/state.rs b/src/state.rs index 9658d66..9951f83 100644 --- a/src/state.rs +++ b/src/state.rs @@ -68,7 +68,6 @@ fn lw_io_write (l: &mut State, num_args: usize) -> usize { _ => panic! ("Can't io.write this value"), } } - println! (""); // TODO: PUC Lua actually returns the file handle here. 0 }