From 30bab1bcc35c448bc5332db4cd0b79ee16d20a8b Mon Sep 17 00:00:00 2001 From: Shi Lei <50089527+lucshi@users.noreply.github.com> Date: Thu, 2 Apr 2020 14:36:02 +0800 Subject: [PATCH] update basic sample to align with native registration API changes (#5) (#224) Change-Id: Iec565f7dd09c14ee5c0f8732f86ff0d2cc094a4d --- samples/basic/src/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/samples/basic/src/main.c b/samples/basic/src/main.c index 97cfa99c0..1e0e7b979 100644 --- a/samples/basic/src/main.c +++ b/samples/basic/src/main.c @@ -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 } };