Files
i2p.i2p/launchers/macosx/I2PLauncher/subprocesses/AppleStuffExceptionHandler.m

23 lines
445 B
Mathematica
Raw Normal View History

//
// AppleStuffExceptionHandler.m
// I2PLauncher
//
// Created by Mikal Villa on 17/09/2018.
// Copyright © 2018 The I2P Project. All rights reserved.
//
#import "AppleStuffExceptionHandler.h"
NSException* __nullable AppleStuffExecuteWithPossibleExceptionInBlock(dispatch_block_t _Nonnull block) {
@try {
if (block != nil) {
block();
}
}
@catch (NSException *exception) {
return exception;
}
return nil;
}