//! Defined in: //! Apple: `objc-exception.h` //! GNUStep: `eh_personality.c`, which is a bit brittle to rely on, but I //! think it's fine... #![allow(non_camel_case_types)]
// A few things here are defined differently depending on the __OBJC2__ // variable, which is set for all platforms except 32-bit macOS.
usecrate::runtime::AnyObject;
/// Remember that this is non-null! #[cfg(any(
doc,
all(
target_vendor = "apple",
not(all(target_os = "macos", target_arch = "x86"))
)
))] type objc_exception_matcher = unsafeextern"C"fn(
catch_type: *mutcrate::runtime::AnyClass,
exception: *mut AnyObject,
) -> core::ffi::c_int;
/// Remember that this is non-null! #[cfg(any(
doc,
all(
target_vendor = "apple",
not(all(target_os = "macos", target_arch = "x86"))
)
))] type objc_exception_preprocessor = unsafeextern"C"fn(exception: *mut AnyObject) -> *mut AnyObject;
/// Remember that this is non-null! #[cfg(any(
doc,
all(
target_vendor = "apple",
not(all(target_os = "macos", target_arch = "x86"))
)
))] type objc_uncaught_exception_handler = unsafeextern"C"fn(exception: *mut AnyObject);
#[cfg(feature = "unstable-objfw")] type objc_uncaught_exception_handler = Option<unsafeextern"C"fn(exception: *mut AnyObject)>;
/// Remember that this is non-null! #[cfg(any(
doc,
all(target_vendor = "apple", target_os = "macos", not(target_arch = "x86"))
))] type objc_exception_handler = unsafeextern"C"fn(unused: *mut AnyObject, context: *mut core::ffi::c_void);
// Only available when ENABLE_OBJCXX is set, and a useable C++ runtime is // present when building libobjc2. // // #[cfg(any(doc, feature = "gnustep-1-7"))] // pub fn objc_set_apple_compatible_objcxx_exceptions(newValue: core::ffi::c_int) -> core::ffi::c_int;
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.