Skip to content

Commit

Permalink
Forgot to add #[no_mangle]
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Jul 15, 2022
1 parent 07a362b commit 4853395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ After you've installed [the Rust compiler][rustup] and cloned this repo, you
will want to compile a model.

```console
$ cargo build -p cuboid --release
$ cargo build --release --package cuboid
$ ls target/release/*.so
target/release/libcuboid.so
```
Expand Down
2 changes: 2 additions & 0 deletions crates/plugins/src/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ impl crate::Host for Host {
#[macro_export]
macro_rules! register_plugin {
($init:expr) => {
#[no_mangle]
#[doc(hidden)]
pub fn fornjot_plugin_init(host: &mut dyn $crate::Host) {
let init: fn(&mut dyn $crate::Host) = $init;
init(host);
Expand Down

0 comments on commit 4853395

Please sign in to comment.