(canary: bool, output: W, colorize: bool)
| 137 | } |
| 138 | |
| 139 | pub fn new_with_output<W>(canary: bool, output: W, colorize: bool) -> Self |
| 140 | where |
| 141 | W: std::io::Write + 'static, |
| 142 | { |
| 143 | Self { |
| 144 | canary, |
| 145 | output: Some(std::sync::Arc::new(std::sync::Mutex::new(Box::new(output)))), |
| 146 | colorize, |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | fn error(&self, cpu: &mut icicle_vm::cpu::Cpu, msg: &str, code: u64) { |
| 151 | if let Some(output) = self.output.as_ref() { |
nothing calls this directly
no outgoing calls
no test coverage detected