mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
354 B
Objective-C
17 lines
354 B
Objective-C
// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
#ifndef __CExceptionHelper_h__
|
|
#define __CExceptionHelper_h__
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#define noEscape __attribute__((noescape))
|
|
|
|
@interface CExceptionHelper: NSObject
|
|
|
|
+ (BOOL)performSafely:(noEscape void(^)(void))tryBlock error:(__autoreleasing NSError **)error;
|
|
|
|
@end
|
|
|
|
#endif
|