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
Here is a rust example to illustrate the problem
use crate::canvas::Canvas; // app_surface is third party crate pub use app_surface::{AppSurface, IOSViewObj}; #[no_mangle] pub extern "C" fn create_canvas(ios_obj: IOSViewObj) -> *mut libc::c_void { println!( "create_canvas, maximum frames: {}", ios_obj.maximum_frames ); let obj = Canvas::new(AppSurface::new(ios_obj), 0_i32); let box_obj = Box::new(obj); // 将 box_obj 对象的内存管理权转交给调用方 Box::into_raw(box_obj) as *mut libc::c_void }
#[repr(C)] pub struct IOSViewObj { pub view: *mut Object, pub metal_layer: *mut c_void, pub maximum_frames: i32, pub callback_to_swift: extern "C" fn(arg: i32), }
WARN: Can't find IOSViewObj. This usually means that this type was incompatible or not found.
The text was updated successfully, but these errors were encountered:
Maybe you need to take a look at [parse] and potentially [parse.expand].
[parse]
[parse.expand]
Sorry, something went wrong.
No branches or pull requests
Here is a rust example to illustrate the problem
my current crate
third party crate
No header found for IOSViewObj, got warning:
WARN: Can't find IOSViewObj. This usually means that this type was incompatible or not found.
The text was updated successfully, but these errors were encountered: