| commit | 75dca2e84620d79b8a69155d10967761ea543cdf | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Mar 25 20:17:52 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Sun Mar 29 21:50:25 2020 -0700 |
| tree | ccbb03e4e3d5e21ccbb20dcbbf9372cb8e749d78 | |
| parent | d71eb54c139b5dd576efe778751dda5c94a399f8 [diff] [blame] |
Passing function pointer from Rust to C++
diff --git a/src/function.rs b/src/function.rs new file mode 100644 index 0000000..1166b3d --- /dev/null +++ b/src/function.rs
@@ -0,0 +1,5 @@ +#[repr(C)] +pub struct FatFunction { + pub trampoline: *const (), + pub ptr: *const (), +}