//! The `objc_msgSend` family of functions. //! //! Most of these are `cfg`-gated, these configs are semver-stable. //! //! TODO: Some of these are only supported on _some_ GNUStep targets! usecrate::runtime::{AnyClass, AnyObject}; #[cfg(any(doc, feature = "gnustep-1-7", feature = "unstable-objfw"))] usecrate::runtime::{Imp, Sel};
/// Specifies data used when sending messages to superclasses. #[repr(C)] #[derive(Debug, Copy, Clone)] // TODO: Does this belong in this file or in types.rs? pubstruct objc_super { /// The object / instance to send a message to. pub receiver: *mut AnyObject, /// The particular superclass of the instance to message. /// /// Named `class` in older Objective-C versions. pub super_class: *const AnyClass,
}
// All message sending functions should use "C-unwind"! // // Note that lookup functions won't throw exceptions themselves, but they can // call hooks, `resolveClassMethod:` and `resolveInstanceMethod:`, so we have // to make those "C-unwind" as well!
extern_c_unwind! { #[cfg(any(doc, feature = "gnustep-1-7", feature = "unstable-objfw"))] pubfn objc_msg_lookup(receiver: *mut AnyObject, sel: Sel) -> Option<Imp>; #[cfg(any(doc, feature = "unstable-objfw"))] pubfn objc_msg_lookup_stret(receiver: *mut AnyObject, sel: Sel) -> Option<Imp>; #[cfg(any(doc, feature = "gnustep-1-7", feature = "unstable-objfw"))] pubfn objc_msg_lookup_super(sup: *const objc_super, sel: Sel) -> Option<Imp>; #[cfg(any(doc, feature = "unstable-objfw"))] pubfn objc_msg_lookup_super_stret(sup: *const objc_super, sel: Sel) -> Option<Imp>; // #[cfg(any(doc, feature = "gnustep-1-7"))] // objc_msg_lookup_sender // objc_msgLookup family available in macOS >= 10.12
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.