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

Figure out how to catch C++ exceptions (right now everything just blows up). #7

Open
luizirber opened this issue Nov 8, 2019 · 0 comments
Assignees
Labels
rust Rust-related issues and PRs

Comments

@luizirber
Copy link
Member

A mix of https://github.com/luizirber/ukhs/blob/master/bbhash-sys/ffi.cpp and rust-lang/rust-bindgen#1208 should be enough. Ideally it would be better to have exceptions never cross thru a C call (wrap in a try/catch block, and return an error code?), but I can use this ideas from the links to wrap all functions that do throw exceptions and expose them to Rust.

(Punted from #3)

@luizirber luizirber added the rust Rust-related issues and PRs label Nov 8, 2019
@luizirber luizirber self-assigned this Nov 8, 2019
@luizirber luizirber mentioned this issue Nov 8, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Rust-related issues and PRs
Projects
None yet
Development

No branches or pull requests

1 participant