mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
Clean up and comment out some NativeFunc tests for now
This commit is contained in:
@@ -166,19 +166,10 @@ macro_rules! impl_native_traits {
|
||||
FunctionDefinition::Host => {
|
||||
if self.arg_kind == VMFunctionKind::Static {
|
||||
unsafe {
|
||||
let f = std::mem::transmute::<_, unsafe fn( $( $x, )*) -> Rets>(self.address);
|
||||
let f = std::mem::transmute::<_, unsafe fn( *mut VMContext, $( $x, )*) -> Rets>(self.address);
|
||||
|
||||
let results = f( $( $x, )* );
|
||||
let results = f( self.vmctx, $( $x, )* );
|
||||
return Ok(results);
|
||||
/* match f( $( $x, )* ) {
|
||||
Err(error) => {
|
||||
dbg!(error);
|
||||
return Err(());
|
||||
}
|
||||
Ok(results) => {
|
||||
return Ok(results);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
} else {
|
||||
todo!("dynamic host functions not yet implemented")
|
||||
@@ -188,8 +179,6 @@ macro_rules! impl_native_traits {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user