Reorder the fields of Export::Function for consistency.
This commit is contained in:
@@ -12,10 +12,10 @@ pub enum Export {
|
|||||||
Function {
|
Function {
|
||||||
/// The address of the native-code function.
|
/// The address of the native-code function.
|
||||||
address: *const VMFunctionBody,
|
address: *const VMFunctionBody,
|
||||||
/// The function signature declaration, used for compatibilty checking.
|
|
||||||
signature: ir::Signature,
|
|
||||||
/// Pointer to the containing `VMContext`.
|
/// Pointer to the containing `VMContext`.
|
||||||
vmctx: *mut VMContext,
|
vmctx: *mut VMContext,
|
||||||
|
/// The function signature declaration, used for compatibilty checking.
|
||||||
|
signature: ir::Signature,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// A table export value.
|
/// A table export value.
|
||||||
@@ -53,13 +53,13 @@ impl Export {
|
|||||||
/// Construct a function export value.
|
/// Construct a function export value.
|
||||||
pub fn function(
|
pub fn function(
|
||||||
address: *const VMFunctionBody,
|
address: *const VMFunctionBody,
|
||||||
signature: ir::Signature,
|
|
||||||
vmctx: *mut VMContext,
|
vmctx: *mut VMContext,
|
||||||
|
signature: ir::Signature,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Export::Function {
|
Export::Function {
|
||||||
address,
|
address,
|
||||||
signature,
|
|
||||||
vmctx,
|
vmctx,
|
||||||
|
signature,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user