objc2_foundation/generated/
NSDebug.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern "C" {
9 pub static NSDebugEnabled: Bool;
13}
14
15extern "C" {
16 pub static NSZombieEnabled: Bool;
18}
19
20extern "C" {
21 pub static NSDeallocateZombies: Bool;
23}
24
25#[inline]
30pub unsafe extern "C-unwind" fn NSIsFreedObject(an_object: Option<&AnyObject>) -> bool {
31 extern "C-unwind" {
32 fn NSIsFreedObject(an_object: Option<&AnyObject>) -> Bool;
33 }
34 unsafe { NSIsFreedObject(an_object) }.as_bool()
35}
36
37#[inline]
39pub extern "C-unwind" fn NSFrameAddress(frame: NSUInteger) -> *mut c_void {
40 extern "C-unwind" {
41 fn NSFrameAddress(frame: NSUInteger) -> *mut c_void;
42 }
43 unsafe { NSFrameAddress(frame) }
44}
45
46#[inline]
47pub extern "C-unwind" fn NSReturnAddress(frame: NSUInteger) -> *mut c_void {
48 extern "C-unwind" {
49 fn NSReturnAddress(frame: NSUInteger) -> *mut c_void;
50 }
51 unsafe { NSReturnAddress(frame) }
52}
53
54#[inline]
55pub extern "C-unwind" fn NSCountFrames() -> NSUInteger {
56 extern "C-unwind" {
57 fn NSCountFrames() -> NSUInteger;
58 }
59 unsafe { NSCountFrames() }
60}
61
62#[cfg(feature = "NSAutoreleasePool")]
64impl NSAutoreleasePool {
65 extern_methods!(
66 #[unsafe(method(showPools))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn showPools();
69 );
70}
71
72extern "C" {
73 pub static NSKeepAllocationStatistics: Bool;
75}
76
77extern "C-unwind" {
78 pub fn NSRecordAllocationEvent(event_type: c_int, object: Option<&AnyObject>);
83}