Skip to content

Commit

Permalink
Use objc_exception_throw directly
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz committed Sep 18, 2020
1 parent 076024a commit 052f6de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/foundation/ns_exception/mod.rs
Expand Up @@ -118,7 +118,11 @@ impl NSException {
/// See [documentation](https://developer.apple.com/documentation/foundation/nsexception/1416135-raise).
#[inline]
pub fn raise(&self) -> ! {
unsafe { _msg_send![self, raise] }
extern "C" {
// TODO: Define unwind ABI.
fn objc_exception_throw(exception: &Object) -> !;
}
unsafe { objc_exception_throw(self) }
}
}

Expand Down

0 comments on commit 052f6de

Please sign in to comment.