Macroization of the code

This commit is contained in:
Adrián Arroyo Calle
2023-02-25 22:27:28 +01:00
parent 9d52d2a653
commit 92b262d599
3 changed files with 136 additions and 101 deletions

View File

@@ -4288,9 +4288,10 @@ impl Machine {
return Ok(());
},
Err(e) => {
// throw error
self.machine_st.fail = true;
return Ok(());
let stub = functor_stub(atom!("current_input"), 1);
let err = self.machine_st.ffi_error(e);
return Err(self.machine_st.error_form(err, stub));
}
}
}