WiresmithTech / Rust-LabVIEW-Interop

A crate for creating libraries in Rust that are called from LabVIEW
MIT License
7 stars 4 forks source link

Write MgError into ErrorClusterPtr #33

Open JamesMc86 opened 1 month ago

JamesMc86 commented 1 month ago

The MGError codes match the LabVIEW codes in the same range so we should be able to set an error cluster using MGError so LabVIEW will give a sensible error.

This could be an Into function if possible, but it may need to be a custom function to reuse the existing handle in the error cluster.