use libffi::middle instead of libffi::low were possible

This commit is contained in:
Bennet Bleßmann
2025-08-01 19:09:56 +02:00
committed by Bennet Bleßmann
parent 6205f2f1f1
commit 3d2439c92b
2 changed files with 226 additions and 210 deletions
+2
View File
@@ -599,6 +599,8 @@ impl MachineState {
FFIError::InvalidStructName => atom!("invalid_struct_name"),
FFIError::FunctionNotFound => atom!("function_not_found"),
FFIError::StructNotFound => atom!("struct_not_found"),
FFIError::ArgCountMismatch => atom!("mismatched_argument_count"),
FFIError::AllocationFailed => atom!("allocation_failed"),
};
let stub = functor!(atom!("ffi_error"), [atom_as_cell(error_atom)]);