blob: 9931f5a94c7ca08f49c28ade767ba33766e8bc3d [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
#![cfg(target_os = "macos")]
#[macro_use]
extern crate objc;
#[allow(non_camel_case_types)]
pub type id = *mut objc::runtime::Object;
pub trait Foo {}
impl Foo for id {}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FooStruct {
pub foo: *mut id,
}
#[test]
fn bindgen_test_layout_FooStruct() {
assert_eq!(
::std::mem::size_of::<FooStruct>(),
8usize,
concat!("Size of: ", stringify!(FooStruct))
);
assert_eq!(
::std::mem::align_of::<FooStruct>(),
8usize,
concat!("Alignment of ", stringify!(FooStruct))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<FooStruct>())).foo as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(FooStruct),
"::",
stringify!(foo)
)
);
}
impl Default for FooStruct {
fn default() -> Self {
unsafe { ::std::mem::zeroed() }
}
}
extern "C" {
pub fn fooFunc(foo: id);
}
extern "C" {
#[link_name = "\u{1}kFoo"]
pub static mut kFoo: *const id;
}