Enhance wasm loader and update build app document (#147)

This commit is contained in:
wenyongh
2019-11-27 10:52:12 +08:00
committed by GitHub
parent ab157473c3
commit 1c81ad6da5
7 changed files with 276 additions and 129 deletions

View File

@ -68,9 +68,6 @@ extern "C" {
#define BLOCK_TYPE_IF 2
#define BLOCK_TYPE_FUNCTION 3
#define CALL_TYPE_WRAPPER 0
#define CALL_TYPE_C_INTRINSIC 1
typedef union WASMValue {
int32 i32;
uint32 u32;
@ -140,8 +137,6 @@ typedef struct WASMFunctionImport {
char *field_name;
/* function type */
WASMType *func_type;
/* c intrinsic function or wrapper function */
uint32 call_type;
/* function pointer after linked */
void *func_ptr_linked;
} WASMFunctionImport;