1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#[cfg(apple)]
use std::os::raw::c_int;
use crate::{id, objc_class, BOOL};
pub const YES: BOOL = true as BOOL;
pub const NO: BOOL = false as BOOL;
pub const nil: id = 0 as *mut _;
pub const Nil: *mut objc_class = 0 as *mut _;
pub type objc_AssociationPolicy = usize;
pub const OBJC_ASSOCIATION_ASSIGN: objc_AssociationPolicy = 0;
pub const OBJC_ASSOCIATION_RETAIN_NONATOMIC: objc_AssociationPolicy = 1;
pub const OBJC_ASSOCIATION_COPY_NONATOMIC: objc_AssociationPolicy = 3;
pub const OBJC_ASSOCIATION_RETAIN: objc_AssociationPolicy = 769;
pub const OBJC_ASSOCIATION_COPY: objc_AssociationPolicy = 771;
#[cfg(apple)]
pub const OBJC_SYNC_SUCCESS: c_int = 0;
#[cfg(apple)]
pub const OBJC_SYNC_NOT_OWNING_THREAD_ERROR: c_int = -1;
#[cfg(apple)]
pub const OBJC_SYNC_TIMED_OUT: c_int = -2;
#[cfg(apple)]
pub const OBJC_SYNC_NOT_INITIALIZED: c_int = -3;