Skip to content

Commit

Permalink
Re-word: only "most" ABIs have -unwind
Browse files Browse the repository at this point in the history
  • Loading branch information
BatmanAoD authored and tmandry committed Jan 17, 2023
1 parent 94bb6a6 commit d1a59f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,9 @@ No `transmute` required!
## FFI and unwinding
It’s important to be mindful of unwinding when working with FFI. Each
ABI comes in two variants, one with `-unwind` suffix and one without (except
the `Rust` ABI, which always permits unwinding).
It’s important to be mindful of unwinding when working with FFI. Most
ABI strings come in two variants, one with an `-unwind` suffix and one without.
The `Rust` ABI always permits unwinding, so there is no `Rust-unwind` ABI.
If you expect Rust `panic`s or foreign (e.g. C++) exceptions to cross an FFI
boundary, that boundary must use the appropriate `-unwind` ABI string.
Expand Down

0 comments on commit d1a59f5

Please sign in to comment.