Skip to content

Commit 04465cc

Browse files
authored
Update README.md
1 parent 4cb26c7 commit 04465cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ with that code, please, [open a issue](https://github.com/jhg/opaque-pointer-rs/
6565
- `std`: activated by default, it is required for c-types FFI.
6666
- `alloc`: required if compile without std.
6767
- `c-types`: FFI for C types, requires std feature.
68-
- `panic-if-null`: it will check if a pointer is null to panic before to use it.
6968

7069
## Panic & unwind in FFI functions
7170

71+
This create returns a result to avoid panic if the pointer is null, if yours FFI need to panic check out the next links.
72+
7273
As a good resume see [comment in gtk-rs issue #78](https://github.com/gtk-rs/gtk-rs/issues/78#issuecomment-753841968):
7374
> Currently any unwinding across extern "C" functions is UB, even if all those functions happens
7475
> to be implemented in Rust. That's part of what that WG is working on solving.

0 commit comments

Comments
 (0)