Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_objc_arc.hpp File Reference
import <Foundation/Foundation.h>
Include dependency graph for catch_objc_arc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CATCH_ARC_ENABLED   0
 
#define CATCH_UNSAFE_UNRETAINED
 
#define CATCH_ARC_STRONG
 

Functions

void arcSafeRelease (NSObject *obj)
 
id performOptionalSelector (id obj, SEL sel)
 

Macro Definition Documentation

◆ CATCH_ARC_ENABLED

#define CATCH_ARC_ENABLED   0

Definition at line 16 of file catch_objc_arc.hpp.

◆ CATCH_ARC_STRONG

#define CATCH_ARC_STRONG

Definition at line 32 of file catch_objc_arc.hpp.

◆ CATCH_UNSAFE_UNRETAINED

#define CATCH_UNSAFE_UNRETAINED

Definition at line 31 of file catch_objc_arc.hpp.

Function Documentation

◆ arcSafeRelease()

void arcSafeRelease ( NSObject * obj)
inline

Definition at line 23 of file catch_objc_arc.hpp.

23 {
24 [obj release];
25}
Here is the caller graph for this function:

◆ performOptionalSelector()

id performOptionalSelector ( id obj,
SEL sel )
inline

Definition at line 26 of file catch_objc_arc.hpp.

26 {
27 if( [obj respondsToSelector: sel] )
28 return [obj performSelector: sel];
29 return nil;
30}
Here is the caller graph for this function: