Removing exceptionHandler callback for iOS.

This commit is contained in:
Vladimir Byko-Ianko 2015-02-05 09:19:09 +03:00 committed by Alex Zolotarev
parent 8def34ee82
commit 37fc715862

View file

@ -17,21 +17,10 @@
- (void) dummyThread: (id) obj {}
@end
/// Used to log NSExceptions.
static void exceptionHandler(NSException * ex)
{
NSArray *stack = [ex callStackSymbols];
NSLog(@"%@", ex.name);
NSLog(@"%@", ex.reason);
NSLog(@"Stack trace: %@", stack);
}
int main(int argc, char * argv[])
{
LOG(LINFO, ("maps.me started, detected CPU cores:", GetPlatform().CpuCores()));
NSSetUncaughtExceptionHandler(&exceptionHandler);
int retVal;
@autoreleasepool
{