fix(runtime-c-api) Fix imports, and check for null pointer.

This commit is contained in:
Ivan Enderlin
2020-01-20 14:36:45 +01:00
parent 77ba77446d
commit 585f5615cf
2 changed files with 14 additions and 10 deletions

View File

@@ -3,13 +3,15 @@
use crate::{
error::{update_last_error, CApiError},
export::wasmer_import_export_kind,
import::wasmer_import_t,
import::{wasmer_import_object_t, wasmer_import_t},
instance::wasmer_instance_t,
wasmer_byte_array, wasmer_result_t,
};
use libc::c_int;
use std::{collections::HashMap, slice};
use wasmer_runtime::{compile, default_compiler, Global, ImportObject, Memory, Module, Table};
use wasmer_runtime::{
compile, default_compiler, Global, ImportObject, Instance, Memory, Module, Table,
};
use wasmer_runtime_core::{cache::Artifact, export::Export, import::Namespace, load_cache_with};
#[repr(C)]