mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
samples/native-lib: Fix exec_env type (#1557)
Change `wasm_exec_env_t *exec_env` to `wasm_exec_env_t exec_env`
This commit is contained in:
parent
a7a9e40fc6
commit
3094b20bd8
|
@ -6,7 +6,7 @@ The native library should provide `get_native_lib` API for iwasm to return the n
|
||||||
|
|
||||||
```C
|
```C
|
||||||
static int
|
static int
|
||||||
foo_wrapper(wasm_exec_env_t *exec_env, int x, int y)
|
foo_wrapper(wasm_exec_env_t exec_env, int x, int y)
|
||||||
{
|
{
|
||||||
return x + y;
|
return x + y;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "wasm_export.h"
|
#include "wasm_export.h"
|
||||||
|
|
||||||
static int
|
static int
|
||||||
test_add_wrapper(wasm_exec_env_t *exec_env, int x, int y)
|
test_add_wrapper(wasm_exec_env_t exec_env, int x, int y)
|
||||||
{
|
{
|
||||||
return x + y;
|
return x + y;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "wasm_export.h"
|
#include "wasm_export.h"
|
||||||
|
|
||||||
static int
|
static int
|
||||||
test_sqrt_wrapper(wasm_exec_env_t *exec_env, int x, int y)
|
test_sqrt_wrapper(wasm_exec_env_t exec_env, int x, int y)
|
||||||
{
|
{
|
||||||
return x * x + y * y;
|
return x * x + y * y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user