mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-31 06:51:04 +00:00
feat(runtime-core) More ABI compatible definition of Func
and FuncEnv
.
This commit is contained in:
parent
11f34a9285
commit
06c6b3c8e8
@ -501,18 +501,14 @@ impl Ctx {
|
|||||||
/// Represents a function pointer. It is mostly used in the
|
/// Represents a function pointer. It is mostly used in the
|
||||||
/// `typed_func` module within the `wrap` functions, to wrap imported
|
/// `typed_func` module within the `wrap` functions, to wrap imported
|
||||||
/// functions.
|
/// functions.
|
||||||
#[repr(C)]
|
#[repr(transparent)]
|
||||||
pub struct Func {
|
pub struct Func(pub(self) *mut c_void);
|
||||||
_private: [u8; 0],
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Represents a function environment pointer, like a captured
|
/// Represents a function environment pointer, like a captured
|
||||||
/// environment of a closure. It is mostly used in the `typed_func`
|
/// environment of a closure. It is mostly used in the `typed_func`
|
||||||
/// module within the `wrap` functions, to wrap imported functions.
|
/// module within the `wrap` functions, to wrap imported functions.
|
||||||
#[repr(C)]
|
#[repr(transparent)]
|
||||||
pub struct FuncEnv {
|
pub struct FuncEnv(pub(self) *mut c_void);
|
||||||
_private: [u8; 0],
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Represents a function context. It is used by imported functions
|
/// Represents a function context. It is used by imported functions
|
||||||
/// only.
|
/// only.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user