#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
use objc::runtime;
pub use objc::runtime::{BOOL, NO, YES};
mod autoreleasepool;
pub use autoreleasepool::AutoReleasePool;
mod array;
pub use array::NSArray;
mod class;
pub use class::load_or_register_class;
mod data;
pub use data::NSData;
mod dictionary;
pub use dictionary::NSMutableDictionary;
mod number;
pub use number::NSNumber;
mod string;
pub use string::NSString;
mod urls;
pub use urls::{NSURLBookmarkCreationOption, NSURLBookmarkResolutionOption, NSURL};
#[inline(always)]
pub fn to_bool(result: BOOL) -> bool {
match result {
YES => true,
NO => false,
#[cfg(not(target_arch = "aarch64"))]
_ => {
std::unreachable!();
}
}
}
#[allow(non_camel_case_types)]
pub type id = *mut runtime::Object;
#[allow(non_upper_case_globals)]
pub const nil: id = 0 as id;
#[cfg(target_pointer_width = "32")]
pub type NSInteger = libc::c_int;
#[cfg(target_pointer_width = "32")]
pub type NSUInteger = libc::c_uint;
#[cfg(target_pointer_width = "64")]
pub type NSInteger = libc::c_long;
#[cfg(target_pointer_width = "64")]
pub type NSUInteger = libc::c_ulong;