Skip to content

Commit 30bab1b

Browse files
authored
update basic sample to align with native registration API changes (#5) (#224)
Change-Id: Iec565f7dd09c14ee5c0f8732f86ff0d2cc094a4d
1 parent c6fc12b commit 30bab1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

samples/basic/src/main.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ int main(int argc, char *argv_main[])
6767
{
6868
"intToStr", // the name of WASM function name
6969
intToStr, // the native function pointer
70-
"(i*~i)i" // the function prototype signature, avoid to use i32
70+
"(i*~i)i", // the function prototype signature, avoid to use i32
71+
NULL // attachment is NULL
7172
},
7273
{
73-
"get_pow", // the name of WASM function name
74+
"get_pow", // the name of WASM function name
7475
get_pow, // the native function pointer
75-
"(ii)i" // the function prototype signature, avoid to use i32
76+
"(ii)i", // the function prototype signature, avoid to use i32
77+
NULL // attachment is NULL
7678
}
7779
};
7880

0 commit comments

Comments
 (0)