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:
YAMAMOTO Takashi 2022-10-06 21:21:21 +09:00 committed by GitHub
parent a7a9e40fc6
commit 3094b20bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ The native library should provide `get_native_lib` API for iwasm to return the n
```C
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;
}

View File

@ -9,7 +9,7 @@
#include "wasm_export.h"
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;
}

View File

@ -9,7 +9,7 @@
#include "wasm_export.h"
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;
}