From 8bfc20d44d3a0d040c6f7031f4975afd515e7424 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 12 Jan 2025 10:52:59 +1300 Subject: Only print halt messages if the verbose flag is set This required passing the verbose flag state down into the DebugState structure. --- src/bin/br.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin') diff --git a/src/bin/br.rs b/src/bin/br.rs index 9f6c10e..431ae39 100644 --- a/src/bin/br.rs +++ b/src/bin/br.rs @@ -83,7 +83,7 @@ fn main_run(args: Run) { false => None, }; - let mut graphical = GraphicalEmulator::new(&config, args.debug); + let mut graphical = GraphicalEmulator::new(&config, args.debug, unsafe {VERBOSE}); graphical.load_program(&bytecode); if let EmulatorSignal::Promote = graphical.run() { let program_name = match &metadata { @@ -109,7 +109,7 @@ fn main_run(args: Run) { } } else { verbose!("Starting headless emulator"); - let mut headless = HeadlessEmulator::new(&config, args.debug); + let mut headless = HeadlessEmulator::new(&config, args.debug, unsafe {VERBOSE}); headless.load_program(&bytecode); headless.run(args.debug); }; -- cgit v1.2.3-70-g09d2