Просмотр исходного кода

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

Change-Id: Iec565f7dd09c14ee5c0f8732f86ff0d2cc094a4d
Shi Lei 5 лет назад
Родитель
Сommit
30bab1bcc3
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      samples/basic/src/main.c

+ 5 - 3
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
         }
     };