Mulberry/ios/Native/ObjCTry.m
astar76 927219bf77 Add Mulberry for iOS (1.0.6) under ios/
SwiftUI port of the Android app with the desktop feature set; built on Linux,
linked and signed on a jailbroken iPhone. History imported from the standalone repo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 23:23:51 -05:00

10 lines
245 B
Objective-C

#import "ObjCTry.h"
NSString *mulberry_try(void (^block)(void)) {
@try {
block();
return nil;
} @catch (NSException *e) {
return [NSString stringWithFormat:@"%@: %@", e.name, e.reason ?: @"(no reason)"];
}
}