objc2 0.6.4

Objective-C interface and runtime bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use core::ffi::c_char;

use crate::runtime::{Bool, Sel};

extern_c! {
    pub fn sel_getName(sel: Sel) -> *const c_char;
    pub fn sel_isEqual(lhs: Sel, rhs: Sel) -> Bool;
    pub fn sel_registerName(name: *const c_char) -> Option<Sel>;

    #[cfg(any(doc, not(feature = "unstable-objfw")))]
    pub fn sel_getUid(name: *const c_char) -> Option<Sel>;

    #[cfg(any(doc, target_vendor = "apple"))]
    pub fn sel_isMapped(sel: Sel) -> Bool;
}