update basic sample to align with native registration API changes (#5) (#224)

Change-Id: Iec565f7dd09c14ee5c0f8732f86ff0d2cc094a4d
This commit is contained in:
Shi Lei 2020-04-02 14:36:02 +08:00 committed by GitHub
parent c6fc12b7b6
commit 30bab1bcc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,12 +67,14 @@ int main(int argc, char *argv_main[])
{
"intToStr", // the name of WASM function name
intToStr, // the native function pointer
"(i*~i)i" // the function prototype signature, avoid to use i32
"(i*~i)i", // the function prototype signature, avoid to use i32
NULL // attachment is NULL
},
{
"get_pow", // the name of WASM function name
"get_pow", // the name of WASM function name
get_pow, // the native function pointer
"(ii)i" // the function prototype signature, avoid to use i32
"(ii)i", // the function prototype signature, avoid to use i32
NULL // attachment is NULL
}
};