We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ab7ae commit e1e1f2bCopy full SHA for e1e1f2b
src/ffi/macros.rs
@@ -2,7 +2,7 @@ macro_rules! ffi_fn {
2
($(#[$doc:meta])* fn $name:ident($($arg:ident: $arg_ty:ty),*) -> $ret:ty $body:block ?= $default:expr) => {
3
$(#[$doc])*
4
#[no_mangle]
5
- pub extern fn $name($($arg: $arg_ty),*) -> $ret {
+ pub extern "C" fn $name($($arg: $arg_ty),*) -> $ret {
6
use std::panic::{self, AssertUnwindSafe};
7
8
match panic::catch_unwind(AssertUnwindSafe(move || $body)) {
0 commit comments