(&mut self)
| 95 | } |
| 96 | |
| 97 | pub(crate) fn enter_execution(&mut self) -> Result<()> { |
| 98 | if self.execution_active { |
| 99 | return Err(Trap::Other( |
| 100 | "cannot call a function while another invocation is active; use FuncContext::call from host functions", |
| 101 | ) |
| 102 | .into()); |
| 103 | } |
| 104 | self.execution_active = true; |
| 105 | Ok(()) |
| 106 | } |
| 107 | |
| 108 | pub(crate) fn exit_execution(&mut self) { |
| 109 | self.execution_active = false; |
no outgoing calls
no test coverage detected