http_open/3 try_or_throw

This commit is contained in:
Adrián Arroyo Calle
2022-03-27 14:23:14 +02:00
parent 6798b22b49
commit bb2a8c9090

View File

@@ -4128,11 +4128,11 @@ impl Machine {
step_or_fail!(self, self.machine_st.p = self.machine_st.cp); step_or_fail!(self, self.machine_st.p = self.machine_st.cp);
} }
&Instruction::CallHttpOpen(_) => { &Instruction::CallHttpOpen(_) => {
self.http_open(); try_or_throw!(self.machine_st, self.http_open());
step_or_fail!(self, self.machine_st.p += 1); step_or_fail!(self, self.machine_st.p += 1);
} }
&Instruction::ExecuteHttpOpen(_) => { &Instruction::ExecuteHttpOpen(_) => {
self.http_open(); try_or_throw!(self.machine_st, self.http_open());
step_or_fail!(self, self.machine_st.p = self.machine_st.cp); step_or_fail!(self, self.machine_st.p = self.machine_st.cp);
} }
&Instruction::CallCurrentTime(_) => { &Instruction::CallCurrentTime(_) => {