forked from I2P_Developers/i2p.i2p
23 lines
445 B
Mathematica
23 lines
445 B
Mathematica
![]() |
//
|
||
|
// 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;
|
||
|
}
|