mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +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
|
||||
/// `typed_func` module within the `wrap` functions, to wrap imported
|
||||
/// functions.
|
||||
#[repr(C)]
|
||||
pub struct Func {
|
||||
_private: [u8; 0],
|
||||
}
|
||||
#[repr(transparent)]
|
||||
pub struct Func(pub(self) *mut c_void);
|
||||
|
||||
/// Represents a function environment pointer, like a captured
|
||||
/// environment of a closure. It is mostly used in the `typed_func`
|
||||
/// module within the `wrap` functions, to wrap imported functions.
|
||||
#[repr(C)]
|
||||
pub struct FuncEnv {
|
||||
_private: [u8; 0],
|
||||
}
|
||||
#[repr(transparent)]
|
||||
pub struct FuncEnv(pub(self) *mut c_void);
|
||||
|
||||
/// Represents a function context. It is used by imported functions
|
||||
/// only.
|
||||
|
Loading…
x
Reference in New Issue
Block a user