Skip to content

Commit ca9c708

Browse files
Merge pull request #196 from diwic/patch-1
Document "prevent unwinding into FFI"
2 parents dcd60a2 + 512d377 commit ca9c708

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/items/functions.md

+1
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ same type as the functions declared in an extern block.
165165
let fptr: extern "C" fn() -> i32 = new_i32;
166166
```
167167

168+
As non-Rust calling conventions do not support unwinding, unwinding past the end of an extern function will cause the process to abort (in LLVM, this is implemented by executing an illegal instruction).

0 commit comments

Comments
 (0)