forked from shadowfacts/Tusker
16 lines
349 B
C
16 lines
349 B
C
|
//
|
||
|
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
NS_INLINE NSException * _Nullable catchNSException(void(^_Nonnull tryBlock)(void)) {
|
||
|
@try {
|
||
|
tryBlock();
|
||
|
}
|
||
|
@catch (NSException *exception) {
|
||
|
return exception;
|
||
|
}
|
||
|
return nil;
|
||
|
}
|