Implement register/call native API with raw (unextracted) arguments (#222)
This commit is contained in:
@ -265,6 +265,8 @@ aot_create_import_funcs(const WASMModule *module)
|
||||
import_funcs[i].func_ptr_linked = import_func->func_ptr_linked;
|
||||
import_funcs[i].func_type = import_func->func_type;
|
||||
import_funcs[i].signature = import_func->signature;
|
||||
import_funcs[i].attachment = import_func->attachment;
|
||||
import_funcs[i].call_conv_raw = import_func->call_conv_raw;
|
||||
/* Resolve function type index */
|
||||
for (j = 0; j < module->type_count; j++)
|
||||
if (import_func->func_type == module->types[j]) {
|
||||
|
||||
@ -85,6 +85,9 @@ typedef struct AOTImportFunc {
|
||||
void *func_ptr_linked;
|
||||
/* signature from registered native symbols */
|
||||
const char *signature;
|
||||
/* attachment */
|
||||
void *attachment;
|
||||
bool call_conv_raw;
|
||||
} AOTImportFunc;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user