diff options
Diffstat (limited to 'third_party/rust/objc_exception/extern/exception.m')
-rw-r--r-- | third_party/rust/objc_exception/extern/exception.m | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/third_party/rust/objc_exception/extern/exception.m b/third_party/rust/objc_exception/extern/exception.m deleted file mode 100644 index 700439ecf7..0000000000 --- a/third_party/rust/objc_exception/extern/exception.m +++ /dev/null @@ -1,21 +0,0 @@ -#include <objc/objc.h> -#include <objc/NSObject.h> - -void RustObjCExceptionThrow(id exception) { - @throw exception; -} - -int RustObjCExceptionTryCatch(void (*try)(void *), void *context, id *error) { - @try { - try(context); - if (error) { - *error = nil; - } - return 0; - } @catch (id exception) { - if (error) { - *error = [exception retain]; - } - return 1; - } -} |