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
When we write a lot of similar wrappers, it would be great to use macro to simplify their declaration:
macro_rules! impl_interface { ($ty:ty) => { paste::item! { fn [<_I $ty _method1>](&self) -> u64 ; } } } #[cxx::bridge] mod ffi { unsafe extern "C++" { impl_interface!(Class1); impl_interface!(Class2); impl_interface!(Class3); impl_interface!(Class4); } }
I can do it in implementation, but can't in declaration
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #274
Sorry, something went wrong.
Yes, thank you. It's a duplicate. Will close this.
No branches or pull requests
When we write a lot of similar wrappers, it would be great to use macro to simplify their declaration:
I can do it in implementation, but can't in declaration
The text was updated successfully, but these errors were encountered: