File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use objc_exception;
3
3
use crate :: rc:: StrongPtr ;
4
4
use crate :: runtime:: Object ;
5
5
6
- pub unsafe fn r#try < F , R > ( closure : F ) -> Result < R , StrongPtr >
6
+ pub unsafe fn catch_exception < F , R > ( closure : F ) -> Result < R , StrongPtr >
7
7
where F : FnOnce ( ) -> R {
8
8
objc_exception:: r#try ( closure) . map_err ( |exception| {
9
9
StrongPtr :: new ( exception as * mut Object )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::{Encode, EncodeArguments};
9
9
#[ cfg( feature = "exception" ) ]
10
10
macro_rules! objc_try {
11
11
( $b: block) => (
12
- $crate:: exception:: r#try ( || $b) . map_err( |exception|
12
+ $crate:: exception:: catch_exception ( || $b) . map_err( |exception|
13
13
if exception. is_null( ) {
14
14
MessageError ( "Uncaught exception nil" . to_owned( ) )
15
15
} else {
You can’t perform that action at this time.
0 commit comments