use crate::{objc_class, objc_object};
#[cfg(any(gnustep, winobjc))]
use crate::{objc_selector, IMP};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct objc_super {
pub receiver: *mut objc_object,
pub super_class: *const objc_class,
}
#[cfg(any(gnustep, winobjc))]
extern "C" {
pub fn objc_msg_lookup(receiver: *mut objc_object, sel: *const objc_selector) -> IMP;
pub fn objc_msg_lookup_super(sup: *const objc_super, sel: *const objc_selector) -> IMP;
}
extern "C" {
pub fn objc_msgSend();
#[cfg(apple)]
pub fn objc_msgSendSuper();
#[cfg(apple)]
pub fn method_invoke();
#[cfg(apple)]
pub fn _objc_msgForward();
pub fn class_getMethodImplementation();
}
#[cfg(not(target_arch = "aarch64"))] extern "C" {
pub fn objc_msgSend_stret();
#[cfg(apple)]
pub fn objc_msgSendSuper_stret();
#[cfg(apple)]
pub fn method_invoke_stret();
#[cfg(apple)]
pub fn _objc_msgForward_stret();
pub fn class_getMethodImplementation_stret();
}
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))] extern "C" {
pub fn objc_msgSend_fpret();
}
#[cfg(target_arch = "x86_64")] extern "C" {
#[cfg(apple)]
pub fn objc_msgSend_fp2ret();
}