Skip to content

Commit 0cd79ee

Browse files
committed
Fix the name of the symbol in objc2-exception-helper
I've changed the name to also no longer include the extra "exception", so that a future `objc2-exception-helper v0.2.0` won't conflict with the symbol from the existing `objc2-exception-helper v0.1.0`.
1 parent f1bde3e commit 0cd79ee

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

crates/objc2-exception-helper/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## Unreleased - YYYY-MM-DD
88

9+
### Fixed
10+
* Fixed the symbol name to include the correct SemVer version of the crate.
11+
912

1013
## 0.1.0 - 2024-06-02
1114

crates/objc2-exception-helper/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern "C" {
4040
/// (using mechanisms like core::intrinsics::r#try) is not an option!
4141
///
4242
/// [manual-asm]: https://gitlab.com/objrs/objrs/-/blob/b4f6598696b3fa622e6fddce7aff281770b0a8c2/src/exception.rs
43-
#[link_name = "objc2_exception_helper_0_2_try_catch_exception"]
43+
#[link_name = "objc2_exception_helper_0_1_try_catch"]
4444
pub fn try_catch(f: TryCatchClosure, context: *mut c_void, error: *mut *mut c_void) -> u8;
4545
}
4646

crates/objc2-exception-helper/src/try_catch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/// crate is present, so we make sure to version this symbol.
1111
///
1212
/// Return `unsigned char` since it is guaranteed to be `u8` on all platforms.
13-
unsigned char objc2_exception_helper_0_2_try_catch_exception(void (*f)(void *), void *context, id *error) {
13+
unsigned char objc2_exception_helper_0_1_try_catch(void (*f)(void *), void *context, id *error) {
1414
@try {
1515
f(context);
1616
return 0;

0 commit comments

Comments
 (0)