mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-28 16:11:32 +00:00
add logging to plugin example, improve swap, and add some consts
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
extern "C" {
|
||||
fn it_works() -> i32;
|
||||
fn initialize();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
@ -9,4 +10,6 @@ pub fn plugin_entrypoint(n: i32) -> i32 {
|
||||
result + n
|
||||
}
|
||||
|
||||
pub fn main() {}
|
||||
pub fn main() {
|
||||
unsafe { initialize() };
|
||||
}
|
||||
|
Reference in New Issue
Block a user