mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
f73180f45e
* adding `wasmer_import_object_new` and `wasmer_import_object_extend` * adding test file `test-module-import-instantiate.c`
13 lines
283 B
Plaintext
13 lines
283 B
Plaintext
(module
|
|
(func $inc (import "env" "inc"))
|
|
(func $mul (import "env" "mul"))
|
|
(func $get (import "env" "get") (result i32))
|
|
|
|
(func (export "inc_and_get") (result i32)
|
|
call $inc
|
|
call $get)
|
|
|
|
(func (export "mul_and_get") (result i32)
|
|
call $mul
|
|
call $get))
|