Skip to content

Commit

Permalink
Add missing system-unwind abi string
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Sep 27, 2024
1 parent 90f813a commit 9772235
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ffi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ The following :t:`[ABI]s` are supported:
``extern "system"`` - The operating system-dependent :t:`ABI`, referred to as
:dt:`external system ABI`.

* :dp:`fls_NQAzj5ai1La5`
``extern "system-unwind"`` - The same as ``extern "system"`` with the
addition that unwinding across FFI is permitted.

:dp:`fls_r2drzo3dixe4`
A :t:`function` without an explicit :t:`ABI` has implicit :t:`Rust ABI`, unless
it appears within an :t:`external block`.
Expand Down Expand Up @@ -118,8 +122,8 @@ include, but may not be limited to, the following:

:dp:`fls_M4LqHf8hbPA8`
It is undefined behavior when a foreign exception crosses a
:t:`foreign function interface` boundary with an :t:`ABI` other than
``extern "C-unwind"``.
:t:`foreign function interface` boundary with an :t:`ABI` that does not end in
``-unwind``.

.. rubric:: Examples

Expand Down

0 comments on commit 9772235

Please sign in to comment.