We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example we might have:
// c++ using Obj = void*;
// rust #[cxx::bridge] mod ffi { extern "C" { type Obj; fn f(obj: &Obj); } }
Currently this fails to compile because we forward declare opaque C types assuming they are structs.
target/debug/build/cxxtest/out/src/main.rs.cc:5:8: error: using typedef-name ‘using Obj = void*’ after ‘struct’ 5 | struct Obj; | ^~~
The text was updated successfully, but these errors were encountered:
Where does the code parse opaque C types at the moment? I’d like to try to take this issue on.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
For example we might have:
Currently this fails to compile because we forward declare opaque C types assuming they are structs.
The text was updated successfully, but these errors were encountered: