3 ms·
Rust has extern "C-unwind" now, so if you can modify the C code to call Rust's panic instead of longjmp, it will unwind and run destructors properly.
by pornel 3y ago
Rust has extern "C-unwind" now, so if you can modify the C code to call Rust's panic instead of longjmp, it will unwind and run destructors properly.