Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error propagation in C #41

Open
Cryoris opened this issue Dec 20, 2024 · 0 comments
Open

Error propagation in C #41

Cryoris opened this issue Dec 20, 2024 · 0 comments

Comments

@Cryoris
Copy link
Owner

Cryoris commented Dec 20, 2024

(How) do we want to propagate internal Rust errors to C? Our current best guess is to have structs represent a result, which contains an error code and the result. Something like

struct ObservableResult {
    int error;  // 0 if no error, otherwise an error enum
    SparseObservable *result;
}

currently the code will just panic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant