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.
extern "C"
1 parent 9a508aa commit d8ef24cCopy full SHA for d8ef24c
src/main.rs
@@ -35,7 +35,7 @@ impl Application {
35
fn new_state(&self) -> State {
36
unsafe {
37
let f = self.library
38
- .get::<fn() -> State>(b"lib_new_state\0")
+ .get::<extern "C" fn() -> State>(b"lib_new_state\0")
39
.unwrap();
40
41
f()
@@ -45,7 +45,7 @@ impl Application {
45
fn update_and_render(&self, platform: &Platform, state: &mut State) {
46
47
48
- .get::<fn(&Platform, &mut State)>(b"lib_update_and_render\0")
+ .get::<extern "C" fn(&Platform, &mut State)>(b"lib_update_and_render\0")
49
50
f(platform, state)
51
}
0 commit comments